diff options
author | Hans Hagen <pragma@wxs.nl> | 2017-10-05 17:04:18 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2017-10-05 17:04:18 +0200 |
commit | 6359695c65028baeb2296bd4b2e0c41a34dd8f0e (patch) | |
tree | 95fe600e7e858e0fc10cf4028bb6a8c7906ef41e /tex/context/base/mkiv/font-oto.lua | |
parent | 318b6f5f9f606d1fa45c1f23564478475fa1fc4c (diff) | |
download | context-6359695c65028baeb2296bd4b2e0c41a34dd8f0e.tar.gz |
2017-10-05 16:30:00
Diffstat (limited to 'tex/context/base/mkiv/font-oto.lua')
-rw-r--r-- | tex/context/base/mkiv/font-oto.lua | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/tex/context/base/mkiv/font-oto.lua b/tex/context/base/mkiv/font-oto.lua index 8faad27e1..4b986bd3b 100644 --- a/tex/context/base/mkiv/font-oto.lua +++ b/tex/context/base/mkiv/font-oto.lua @@ -404,7 +404,7 @@ local function initializehashes(tfmdata) -- already done end -local function checkmathreplacements(tfmdata,fullname) +local function checkmathreplacements(tfmdata,fullname,fixitalics) if tfmdata.mathparameters then local characters = tfmdata.characters local changed = tfmdata.changed @@ -418,6 +418,16 @@ local function checkmathreplacements(tfmdata,fullname) local n = u.next local v = u.vert_variants local h = u.horiz_variants + if fixitalics then + -- quite some warnings on stix ... + local ui = u.italic + if ui and not r.italic then + if trace_preparing then + report_prepare("using %i units of italic correction from %C for %U",ui,unicode,replacement) + end + r.italic = ui -- print(ui,ri) + end + end if n and not r.next then if trace_preparing then report_prepare("forcing %s for %C substituted by %U","incremental step",unicode,replacement) @@ -498,7 +508,7 @@ local function featuresinitializer(tfmdata,value) end -- if substitutionsdone then - checkmathreplacements(tfmdata,fullname) + checkmathreplacements(tfmdata,fullname,features.fixitalics) end -- registerbasehash(tfmdata) |