From 18cac19a8a01e516062e9f2bf6eb6bc2894a8991 Mon Sep 17 00:00:00 2001
From: Khaled Hosny <khaledhosny@eglug.org>
Date: Fri, 7 Oct 2011 02:29:40 +0200
Subject: We no longer need to fiddle with MathConstants table

---
 luaotfload.dtx | 26 +-------------------------
 1 file changed, 1 insertion(+), 25 deletions(-)

(limited to 'luaotfload.dtx')

diff --git a/luaotfload.dtx b/luaotfload.dtx
index c046674..6542f8d 100644
--- a/luaotfload.dtx
+++ b/luaotfload.dtx
@@ -572,31 +572,7 @@ luatexbase.create_callback("luaotfload.patch_font", "simple", function() end)
 %    \begin{macrocode}
 local function def_font(...)
     local fontdata = fonts.definers.read(...)
-    if type(fontdata) == "table" and fontdata.shared then
-%    \end{macrocode}
-%
-%    Then we populate |MathConstants| table, which is required for OpenType
-%    math.
-%
-%    \begin{macrocode}
-        local otfdata = fontdata.shared.rawdata
-        if otfdata.metadata.math then
-            local params = fontdata.parameters
-            local mc = { }
-            for k,v in next, otfdata.metadata.math do
-                if k:find("Percent") then
-                    -- keep percent values as is
-                    mc[k] = v
-                else
-                    mc[k] = v / params.units * params.size
-                end
-            end
-            -- for \overwithdelims
-            mc.FractionDelimiterSize             = 1.01 * params.size
-            mc.FractionDelimiterDisplayStyleSize = 2.39 * params.size
-
-            fontdata.MathConstants = mc
-        end
+    if type(fontdata) == "table" then
 %    \end{macrocode}
 %
 %    Execute any registered font patching callbacks.
-- 
cgit v1.2.3

