From c6d49690d444913166f5365ec4ff132d2c455440 Mon Sep 17 00:00:00 2001
From: Khaled Hosny <khaledhosny@eglug.org>
Date: Thu, 15 Jul 2010 17:01:48 +0300
Subject: Cosmetics

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

(limited to 'luaotfload.dtx')

diff --git a/luaotfload.dtx b/luaotfload.dtx
index 7e6283b..a211a10 100644
--- a/luaotfload.dtx
+++ b/luaotfload.dtx
@@ -664,17 +664,20 @@ local function def_font(...)
 %
 %    \begin{macrocode}
         if otfdata.metadata.math then
+            local mc = { }
             for k,v in next, otfdata.metadata.math do
                 if k:find("Percent") then
                     -- keep percent values as is
-                    fontdata.MathConstants[k] = v
+                    mc[k] = v
                 else
-                    fontdata.MathConstants[k] = v / units * size
+                    mc[k] = v / units * size
                 end
             end
             -- for \overwithdelims
-            fontdata.MathConstants["FractionDelimiterSize"]        = 1.01 * size
-            fontdata.MathConstants["FractionDelimiterDisplayStyleSize"] = 2.39 * size
+            mc["FractionDelimiterSize"]             = 1.01 * size
+            mc["FractionDelimiterDisplayStyleSize"] = 2.39 * size
+
+            fontdata.MathConstants = mc
         end
 
     end
-- 
cgit v1.2.3

