diff options
author | Hans Hagen <pragma@wxs.nl> | 2017-05-27 20:39:37 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2017-05-27 20:39:37 +0200 |
commit | 0354ea8393c57ad00606d233468c39928e9d4b4a (patch) | |
tree | c087ba71c2e6458671101d3e485edb287dccc153 /tex/context/base/mkiv/font-con.lua | |
parent | 82aed3e7e8af29f359ebef4f93684d20e98107e6 (diff) | |
download | context-0354ea8393c57ad00606d233468c39928e9d4b4a.tar.gz |
2017-05-27 18:57:00
Diffstat (limited to 'tex/context/base/mkiv/font-con.lua')
-rw-r--r-- | tex/context/base/mkiv/font-con.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tex/context/base/mkiv/font-con.lua b/tex/context/base/mkiv/font-con.lua index 85ac33a10..e328d56d2 100644 --- a/tex/context/base/mkiv/font-con.lua +++ b/tex/context/base/mkiv/font-con.lua @@ -322,7 +322,7 @@ function constructors.scale(tfmdata,specification) -- local mathsize = tonumber(specification.mathsize) or 0 local textsize = tonumber(specification.textsize) or scaledpoints - local forcedsize = tonumber(parameters.mathsize ) or 0 + local forcedsize = tonumber(parameters.mathsize ) or 0 -- can be set by the feature "mathsize" local extrafactor = tonumber(specification.factor ) or 1 if (mathsize == 2 or forcedsize == 2) and parameters.scriptpercentage then scaledpoints = parameters.scriptpercentage * textsize / 100 @@ -330,6 +330,8 @@ function constructors.scale(tfmdata,specification) scaledpoints = parameters.scriptscriptpercentage * textsize / 100 elseif forcedsize > 1000 then -- safeguard scaledpoints = forcedsize + else + -- in context x and xx also use mathsize end targetparameters.mathsize = mathsize -- context specific targetparameters.textsize = textsize -- context specific |