Update glyf's glyphOrder when calling TTFont.setGlyphOrder()

https://github.com/fonttools/fonttools/issues/2060#issuecomment-1063932428
This commit is contained in:
Cosimo Lupo 2022-03-10 11:29:17 +00:00
parent d3eb079c5d
commit 3529a44f75

View File

@ -451,6 +451,8 @@ class TTFont(object):
self.glyphOrder = glyphOrder
if hasattr(self, '_reverseGlyphOrderDict'):
del self._reverseGlyphOrderDict
if self.isLoaded("glyf"):
self["glyf"].setGlyphOrder(glyphOrder)
def getGlyphOrder(self):
"""Returns a list of glyph names ordered by their position in the font."""