From e9db0c1b4d5a293ed433fecc04262d841abd89bf Mon Sep 17 00:00:00 2001
From: Khaled Hosny <khaledhosny@eglug.org>
Date: Sun, 20 Feb 2011 20:49:06 +0200
Subject: Code for setting \fontdimen8 moved to fontspec

---
 luaotfload.dtx | 28 ----------------------------
 1 file changed, 28 deletions(-)

(limited to 'luaotfload.dtx')

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.
 %
-- 
cgit v1.2.3

