diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2011-02-25 18:37:52 +0200 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2011-02-25 18:37:52 +0200 |
commit | d1d0618258ee20da2800fb04de5512b0e4fe8646 (patch) | |
tree | 1c2e5d90e9c802fcb0ad6096035841be3fea9cb1 | |
parent | d33e9b945f7ab98c9879b95f3ac51c56dcf81803 (diff) | |
download | luaotfload-d1d0618258ee20da2800fb04de5512b0e4fe8646.tar.gz |
Fix bugs resulted from previous code removal
-rw-r--r-- | luaotfload.dtx | 7 |
1 files changed, 4 insertions, 3 deletions
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 |