summaryrefslogtreecommitdiff
path: root/luaotfload.dtx
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2011-10-04 02:04:12 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2011-10-04 03:17:57 +0200
commit1fdacd21972985d8d70c6c4567f2a3751c15d36d (patch)
tree1197c64e795251715536d8532e5b2e658aed01b9 /luaotfload.dtx
parent421c10b46b762fd842acf590fbb14ed0acae9c4c (diff)
downloadluaotfload-1fdacd21972985d8d70c6c4567f2a3751c15d36d.tar.gz
Another internal table renamed
More tests pass.
Diffstat (limited to 'luaotfload.dtx')
-rw-r--r--luaotfload.dtx7
1 files changed, 4 insertions, 3 deletions
diff --git a/luaotfload.dtx b/luaotfload.dtx
index 9aeb0ee..832aadf 100644
--- a/luaotfload.dtx
+++ b/luaotfload.dtx
@@ -648,18 +648,19 @@ local function def_font(...)
% \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 / fontdata.units * fontdata.size
+ mc[k] = v / params.units * params.size
end
end
-- for \overwithdelims
- mc.FractionDelimiterSize = 1.01 * fontdata.size
- mc.FractionDelimiterDisplayStyleSize = 2.39 * fontdata.size
+ mc.FractionDelimiterSize = 1.01 * params.size
+ mc.FractionDelimiterDisplayStyleSize = 2.39 * params.size
fontdata.MathConstants = mc
end