summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/font-dsp.lua
diff options
context:
space:
mode:
authorContext Git Mirror Bot <phg42.2a@gmail.com>2016-09-12 09:56:30 +0200
committerContext Git Mirror Bot <phg42.2a@gmail.com>2016-09-12 09:56:30 +0200
commitfbf22006525c920e93b9f671c2af3d4df2be902e (patch)
tree34d00873adf1442775edd4aa8cd5edc7da73919f /tex/context/base/mkiv/font-dsp.lua
parentbfc2e20d0dfa0dfaf04b0c2c81aed20638f21c91 (diff)
downloadcontext-fbf22006525c920e93b9f671c2af3d4df2be902e.tar.gz
2016-09-12 08:18:00
Diffstat (limited to 'tex/context/base/mkiv/font-dsp.lua')
-rw-r--r--tex/context/base/mkiv/font-dsp.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/tex/context/base/mkiv/font-dsp.lua b/tex/context/base/mkiv/font-dsp.lua
index 1c81e5e22..cd2816893 100644
--- a/tex/context/base/mkiv/font-dsp.lua
+++ b/tex/context/base/mkiv/font-dsp.lua
@@ -1933,7 +1933,7 @@ function readers.gdef(f,fontdata,specification)
end
end
-- mark sets : todo: just make the same as class sets above
- if marksetsoffset then
+ if marksetsoffset and marksetsoffset > tableoffset then -- zero offset means no table
setposition(f,marksetsoffset)
local format = readushort(f)
if format == 1 then
@@ -1942,7 +1942,6 @@ function readers.gdef(f,fontdata,specification)
for i=1,nofsets do
sets[i] = readulong(f)
end
- -- somehow this fails on e.g. notosansethiopic-bold.ttf
for i=1,nofsets do
local offset = sets[i]
if offset ~= 0 then