summaryrefslogtreecommitdiff
path: root/luaotfload.dtx
diff options
context:
space:
mode:
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.
%