diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2010-07-15 17:01:48 +0300 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2010-07-15 17:01:48 +0300 |
commit | c6d49690d444913166f5365ec4ff132d2c455440 (patch) | |
tree | 957a5a5438ab7740b348970ea9d46898e00e9e78 | |
parent | 89ec47708d84d0a7951f952f5ba23191a8d67ed1 (diff) | |
download | luaotfload-c6d49690d444913166f5365ec4ff132d2c455440.tar.gz |
Cosmetics
-rw-r--r-- | luaotfload.dtx | 11 |
1 files changed, 7 insertions, 4 deletions
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 |