From d1d0618258ee20da2800fb04de5512b0e4fe8646 Mon Sep 17 00:00:00 2001
From: Khaled Hosny <khaledhosny@eglug.org>
Date: Fri, 25 Feb 2011 18:37:52 +0200
Subject: Fix bugs resulted from previous code removal

---
 luaotfload.dtx | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

(limited to 'luaotfload.dtx')

diff --git a/luaotfload.dtx b/luaotfload.dtx
index 0308865..40f3a7c 100644
--- a/luaotfload.dtx
+++ b/luaotfload.dtx
@@ -605,6 +605,7 @@ local function def_font(...)
 % OpenType math.
 %
 %    \begin{macrocode}
+        local otfdata = fontdata.shared.otfdata
         if otfdata.metadata.math then
             local mc = { }
             for k,v in next, otfdata.metadata.math do
@@ -612,12 +613,12 @@ local function def_font(...)
                     -- keep percent values as is
                     mc[k] = v
                 else
-                    mc[k] = v / units * size
+                    mc[k] = v / fontdata.units * fontdata.size
                 end
             end
             -- for \overwithdelims
-            mc.FractionDelimiterSize             = 1.01 * size
-            mc.FractionDelimiterDisplayStyleSize = 2.39 * size
+            mc.FractionDelimiterSize             = 1.01 * fontdata.size
+            mc.FractionDelimiterDisplayStyleSize = 2.39 * fontdata.size
 
             fontdata.MathConstants = mc
         end
-- 
cgit v1.2.3

