From b48f0e96702e32ff56d9995b2304f304f4625e20 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Tue, 13 Jul 2010 20:22:14 +0300 Subject: Handle all percent constants There is also ScriptPercentScaleDown and ScriptScriptPercentScaleDown besides RadicalDegreeBottomRaisePercent, so be more generalised. --- luaotfload.dtx | 4 ++-- 1 file 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 -- cgit v1.2.3