2021-04-25 21:38:10 (UTC-03:00)
Marcel Rodrigues <marcelgmr@gmail.com>
TTF: fix glyph data location when long offsets are used
diff --git a/ttf.lua b/ttf.lua index 57e6f63..a531cf3 100644 --- a/ttf.lua +++ b/ttf.lua @@ -345,7 +345,7 @@ function Face:glyph(id) suboffset = self:uint16() * 2 else -- long offsets self:goto("loca", 4*id) - suboffset = self:uint16() + suboffset = self:uint32() end self:goto("glyf", suboffset) local num_contours = self:int16()