summaryrefslogtreecommitdiff
path: root/luaotfload.dtx
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2011-02-20 20:49:06 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2011-02-20 20:49:06 +0200
commite9db0c1b4d5a293ed433fecc04262d841abd89bf (patch)
treeb25f11cbe10f35f639169fb82552e825ccbe3468 /luaotfload.dtx
parentd9be74ddadb95df36a0ffe08343190cf3a77dbfa (diff)
downloadluaotfload-e9db0c1b4d5a293ed433fecc04262d841abd89bf.tar.gz
Code for setting \fontdimen8 moved to fontspec
Diffstat (limited to 'luaotfload.dtx')
-rw-r--r--luaotfload.dtx28
1 files changed, 0 insertions, 28 deletions
diff --git a/luaotfload.dtx b/luaotfload.dtx
index 19286d5..091c16a 100644
--- a/luaotfload.dtx
+++ b/luaotfload.dtx
@@ -604,34 +604,6 @@ local function def_font(...)
if type(fontdata) == "table" and fontdata.shared then
% \end{macrocode}
%
-% Here we add some code to emulate \xetex's \cs{fontdimen8},
-% which stores the caps-height of the font. (Cf.\ \cs{fontdimen5} which
-% stores the x-height.)
-%
-% Falls back to measuring the glyph if the font doesn't contain the
-% necessary information.
-% This needs to be extended for fonts that don't contain an `X'.
-%
-% XXX: move to \texttt{fontspec}.
-%
-% \begin{macrocode}
- local capheight
- local units = fontdata.units
- local size = fontdata.size
- local otfdata = fontdata.shared.otfdata
-
- if otfdata.pfminfo.os2_capheight > 0 then
- capheight = otfdata.pfminfo.os2_capheight / units * size
- else
- if fontdata.characters[string.byte("X")] then
- capheight = fontdata.characters[string.byte("X")].height
- else
- capheight = otfdata.metadata.ascent / units * size
- end
- end
- fontdata.parameters[8] = capheight
-% \end{macrocode}
-%
% Then we populate \texttt{MathConstants} table, which is required for
% OpenType math.
%