diff options
author | Hans Hagen <pragma@wxs.nl> | 2019-12-24 21:10:09 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2019-12-24 21:10:09 +0100 |
commit | d40e81dea53da7bbc91df306814003f7720a167f (patch) | |
tree | 8aed8a716370cac0d04145a72405c1beed11b94d /tex/context/base/mkiv/font-cff.lua | |
parent | d1f4da02201fd33c139ee1756296e8df53580ff7 (diff) | |
download | context-d40e81dea53da7bbc91df306814003f7720a167f.tar.gz |
2019-12-24 19:54:00
Diffstat (limited to 'tex/context/base/mkiv/font-cff.lua')
-rw-r--r-- | tex/context/base/mkiv/font-cff.lua | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tex/context/base/mkiv/font-cff.lua b/tex/context/base/mkiv/font-cff.lua index 77b1c1888..5f79ba7a3 100644 --- a/tex/context/base/mkiv/font-cff.lua +++ b/tex/context/base/mkiv/font-cff.lua @@ -1351,6 +1351,8 @@ do -- These are probably used for special cases i.e. call out to the -- postscript interpreter (p 61 of the spec as well as chapter 8). + -- + -- This needs checking (I have to ask Taco next time we meet.) local popped = 3 local hints = 3 @@ -1367,7 +1369,15 @@ do else popped = 3 end - top = top - (stack[top-1] + 2) + local t = stack[top-1] + if t then + top = top - (t + 2) + if top < 0 then + top = 0 + end + else + top = 0 + end else top = 0 end |