summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2010-07-13 20:22:14 +0300
committerKhaled Hosny <khaledhosny@eglug.org>2010-07-13 20:22:14 +0300
commitb48f0e96702e32ff56d9995b2304f304f4625e20 (patch)
tree889d3f7dc2e440a1e87513e2183aabbebbb103f7
parent1c29862b5427973213ef3165de592230f047948a (diff)
downloadluaotfload-b48f0e96702e32ff56d9995b2304f304f4625e20.tar.gz
Handle all percent constants
There is also ScriptPercentScaleDown and ScriptScriptPercentScaleDown besides RadicalDegreeBottomRaisePercent, so be more generalised.
-rw-r--r--luaotfload.dtx4
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