diff options
author | Hans Hagen <pragma@wxs.nl> | 2019-08-09 21:12:52 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2019-08-09 21:12:52 +0200 |
commit | 76a1861b8ff7c2befbc41270833a4a0919c93c30 (patch) | |
tree | 0053915db1de56ac3da2a1415b5447bf66acd81f /tex/context/base/mkiv/font-ttf.lua | |
parent | e92fac1b64f7969cadd8ae60f336c43624250d42 (diff) | |
download | context-76a1861b8ff7c2befbc41270833a4a0919c93c30.tar.gz |
2019-08-09 18:36:00
Diffstat (limited to 'tex/context/base/mkiv/font-ttf.lua')
-rw-r--r-- | tex/context/base/mkiv/font-ttf.lua | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tex/context/base/mkiv/font-ttf.lua b/tex/context/base/mkiv/font-ttf.lua index d2fe0917c..651ede17e 100644 --- a/tex/context/base/mkiv/font-ttf.lua +++ b/tex/context/base/mkiv/font-ttf.lua @@ -733,7 +733,15 @@ local function repackpoints(glyphs,shapes) currentx = px currenty = py if lastflag == fl then - nofflags = nofflags + 1 + if nofflags == 255 then + -- This happens in koeieletters! + lastflag = lastflag + 0x08 + r = r + 1 result[r] = char(lastflag,nofflags-1) + nofflags = 1 + lastflag = fl + else + nofflags = nofflags + 1 + end else -- if > 255 if nofflags == 1 then -- r = r + 1 result[r] = char(lastflag) |