Update glyf's glyphOrder when calling TTFont.setGlyphOrder()
https://github.com/fonttools/fonttools/issues/2060#issuecomment-1063932428
This commit is contained in:
parent
d3eb079c5d
commit
3529a44f75
@ -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."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user