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/generic | |
parent | 318b6f5f9f606d1fa45c1f23564478475fa1fc4c (diff) | |
download | context-6359695c65028baeb2296bd4b2e0c41a34dd8f0e.tar.gz |
2017-10-05 16:30:00
Diffstat (limited to 'tex/generic')
-rw-r--r-- | tex/generic/context/luatex/luatex-fonts-merged.lua | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/tex/generic/context/luatex/luatex-fonts-merged.lua b/tex/generic/context/luatex/luatex-fonts-merged.lua index 7cd7b442b..f84adbf43 100644 --- a/tex/generic/context/luatex/luatex-fonts-merged.lua +++ b/tex/generic/context/luatex/luatex-fonts-merged.lua @@ -1,6 +1,6 @@ -- merged file : c:/data/develop/context/sources/luatex-fonts-merged.lua -- parent file : c:/data/develop/context/sources/luatex-fonts.lua --- merge date : 10/02/17 10:34:56 +-- merge date : 10/05/17 16:25:14 do -- begin closure to overcome local limits and interference @@ -20803,7 +20803,7 @@ local function preparepositionings(tfmdata,feature,value,validlookups,lookuplist end local function initializehashes(tfmdata) end -local function checkmathreplacements(tfmdata,fullname) +local function checkmathreplacements(tfmdata,fullname,fixitalics) if tfmdata.mathparameters then local characters=tfmdata.characters local changed=tfmdata.changed @@ -20817,6 +20817,15 @@ local function checkmathreplacements(tfmdata,fullname) local n=u.next local v=u.vert_variants local h=u.horiz_variants + if fixitalics then + 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 + 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) @@ -20893,7 +20902,7 @@ local function featuresinitializer(tfmdata,value) end end if substitutionsdone then - checkmathreplacements(tfmdata,fullname) + checkmathreplacements(tfmdata,fullname,features.fixitalics) end registerbasehash(tfmdata) end |