diff options
author | Hans Hagen <pragma@wxs.nl> | 2019-06-05 16:21:48 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2019-06-05 16:21:48 +0200 |
commit | e8dc7842e52c4509ce38115c521672198beafca3 (patch) | |
tree | cf20e11d1943c5a572f365a6f613530d1a364e5f /tex/context/base/mkiv/font-imp-quality.lua | |
parent | 822d6299d6c28fe3780ff40831ec5c00c60133f5 (diff) | |
download | context-e8dc7842e52c4509ce38115c521672198beafca3.tar.gz |
2019-06-05 15:47:00
Diffstat (limited to 'tex/context/base/mkiv/font-imp-quality.lua')
-rw-r--r-- | tex/context/base/mkiv/font-imp-quality.lua | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tex/context/base/mkiv/font-imp-quality.lua b/tex/context/base/mkiv/font-imp-quality.lua index 5152d212f..b3ea73f02 100644 --- a/tex/context/base/mkiv/font-imp-quality.lua +++ b/tex/context/base/mkiv/font-imp-quality.lua @@ -520,13 +520,18 @@ implement { local function initialize(tfmdata,value) local properties = tfmdata.properties + local parameters = tfmdata.parameters if properties then value = tonumber(value) if value then if value < 0 then value = 0 - elseif value > 100 then - value = 100 + elseif value > 10 then + report_expansions("threshold for %a @ %p limited to 10 pct",properties.fontname,parameters.size) + value = 10 + end + if value > 5 then + report_expansions("threshold for %a @ %p exceeds 5 pct",properties.fontname,parameters.size) end end properties.threshold = value or nil -- nil enforces default |