[CFF2ToCFF] Convert FD's to CFF1

Makes ftview like the font, but still not ttx.
This commit is contained in:
Behdad Esfahbod 2024-05-27 16:11:58 -06:00
parent 87ae6ba224
commit c384709c0a

View File

@ -35,6 +35,7 @@ def _convertCFF2ToCFF(cff, otFont):
topDictData = TopDictIndex(None) topDictData = TopDictIndex(None)
for item in cff.topDictIndex: for item in cff.topDictIndex:
# Iterate over, such that all are decompiled # Iterate over, such that all are decompiled
item.cff2GetGlyphOrder = None
topDictData.append(item) topDictData.append(item)
cff.topDictIndex = topDictData cff.topDictIndex = topDictData
topDict = topDictData[0] topDict = topDictData[0]