diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2010-07-13 20:22:14 +0300 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2010-07-13 20:22:14 +0300 |
commit | b48f0e96702e32ff56d9995b2304f304f4625e20 (patch) | |
tree | 889d3f7dc2e440a1e87513e2183aabbebbb103f7 | |
parent | 1c29862b5427973213ef3165de592230f047948a (diff) | |
download | luaotfload-b48f0e96702e32ff56d9995b2304f304f4625e20.tar.gz |
Handle all percent constants
There is also ScriptPercentScaleDown and ScriptScriptPercentScaleDown
besides RadicalDegreeBottomRaisePercent, so be more generalised.
-rw-r--r-- | luaotfload.dtx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/luaotfload.dtx b/luaotfload.dtx index 6c68db1..01bdeec 100644 --- a/luaotfload.dtx +++ b/luaotfload.dtx @@ -652,8 +652,8 @@ local function def_font(...) % \begin{macrocode} if otfdata.metadata.math then for k,v in next, otfdata.metadata.math do - if k == "RadicalDegreeBottomRaisePercent" then - -- this is a percent + if k:find("Percent") then + -- keep percent values as is fontdata.MathConstants[k] = v else fontdata.MathConstants[k] = v / units * size |