diff options
author | Hans Hagen <pragma@wxs.nl> | 2020-12-30 17:22:53 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2020-12-30 17:22:53 +0100 |
commit | a04a6e9b9b68a836f27d971115fd1049c04e6c19 (patch) | |
tree | f6691ef4da47bdf0c4c9a17e03e0cf27ed1cec25 /tex/context/base/mkiv/font-ots.lua | |
parent | a784490c3d6a27467c930594ca8b78585ab65baf (diff) | |
download | context-a04a6e9b9b68a836f27d971115fd1049c04e6c19.tar.gz |
2020-12-30 16:45:00
Diffstat (limited to 'tex/context/base/mkiv/font-ots.lua')
-rw-r--r-- | tex/context/base/mkiv/font-ots.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tex/context/base/mkiv/font-ots.lua b/tex/context/base/mkiv/font-ots.lua index 617c249b3..1f4806ee2 100644 --- a/tex/context/base/mkiv/font-ots.lua +++ b/tex/context/base/mkiv/font-ots.lua @@ -1532,7 +1532,8 @@ function chainprocs.gsub_ligature(head,start,stop,dataset,sequence,currentlookup end function chainprocs.gpos_single(head,start,stop,dataset,sequence,currentlookup,rlmode,skiphash,chainindex) - if has_glyph_option(start,no_right_kern_code) then + -- we actually should check no_left_kern_code with next + if not has_glyph_option(start,no_right_kern_code) then local mapping = currentlookup.mapping if mapping == nil then mapping = getmapping(dataset,sequence,currentlookup) @@ -1561,7 +1562,8 @@ function chainprocs.gpos_single(head,start,stop,dataset,sequence,currentlookup,r end function chainprocs.gpos_pair(head,start,stop,dataset,sequence,currentlookup,rlmode,skiphash,chainindex) -- todo: injections ? - if has_glyph_option(start,no_right_kern_code) then + -- we actually should check no_left_kern_code with next + if not has_glyph_option(start,no_right_kern_code) then local mapping = currentlookup.mapping if mapping == nil then mapping = getmapping(dataset,sequence,currentlookup) |