diff options
author | Hans Hagen <pragma@wxs.nl> | 2018-11-29 20:53:37 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2018-11-29 20:53:37 +0100 |
commit | 9bd28a3039a458b054459fe1ef80161b107b798f (patch) | |
tree | c15bf6aedc4313de999a97bf92dc63b16ca60794 /tex/context/base/mkiv/font-imp-quality.lua | |
parent | 744095aa4676553437db0d71c281a74557a3222f (diff) | |
download | context-9bd28a3039a458b054459fe1ef80161b107b798f.tar.gz |
2018-11-29 19:54:00
Diffstat (limited to 'tex/context/base/mkiv/font-imp-quality.lua')
-rw-r--r-- | tex/context/base/mkiv/font-imp-quality.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tex/context/base/mkiv/font-imp-quality.lua b/tex/context/base/mkiv/font-imp-quality.lua index c0ccfb227..930d036e1 100644 --- a/tex/context/base/mkiv/font-imp-quality.lua +++ b/tex/context/base/mkiv/font-imp-quality.lua @@ -310,12 +310,14 @@ local function map_opbd_onto_protrusion(tfmdata,value,opbd) local characters = tfmdata.characters local descriptions = tfmdata.descriptions local properties = tfmdata.properties + local parameters = tfmdata.parameters local resources = tfmdata.resources local rawdata = tfmdata.shared.rawdata local lookuphash = rawdata.lookuphash local lookuptags = resources.lookuptags local script = properties.script local language = properties.language + local units = parameters.units local done, factor, left, right = false, 1, 1, 1 local class = classes[value] if class then @@ -358,7 +360,7 @@ local function map_opbd_onto_protrusion(tfmdata,value,opbd) if w == 0 or d == 0 then -- ignored else - local p = lfactor * ((w+d)/d)/100 + local p = lfactor * d/units characters[k].left_protruding = p if trace_protrusion then report_protrusions("lfbd -> %0.3F %C",p,k) @@ -396,7 +398,7 @@ local function map_opbd_onto_protrusion(tfmdata,value,opbd) if w == 0 or d == 0 then -- ignored else - local p = rfactor * ((w+d)/d)/100 + local p = rfactor * d/units characters[k].right_protruding = p if trace_protrusion then report_protrusions("rtbd -> %0.3F %C",p,k) |