Fix handling of composite glyphs

This commit is contained in:
Kovid Goyal 2012-11-06 12:21:49 +05:30
parent d169599f63
commit caf8e0ebed

View File

@ -49,7 +49,7 @@ class CompositeGlyph(SimpleGlyph):
self.is_composite = True
flags = MORE_COMPONENTS
offset = 0
offset = 10
while flags & MORE_COMPONENTS:
flags, glyph_index = unpack_from(b'>HH', raw, offset)
self.glyph_indices.append(glyph_index)