[cffLib] Fix calls to TopDictIndex()
Fixes https://github.com/fonttools/fonttools/issues/1847
This commit is contained in:
parent
eaafd6089e
commit
64fc028eee
@ -337,7 +337,7 @@ class CFFFontSet(object):
|
|||||||
topDict = TopDict(
|
topDict = TopDict(
|
||||||
GlobalSubrs=self.GlobalSubrs,
|
GlobalSubrs=self.GlobalSubrs,
|
||||||
cff2GetGlyphOrder=cff2GetGlyphOrder)
|
cff2GetGlyphOrder=cff2GetGlyphOrder)
|
||||||
self.topDictIndex = TopDictIndex(None, cff2GetGlyphOrder, None)
|
self.topDictIndex = TopDictIndex(None, cff2GetGlyphOrder)
|
||||||
self.topDictIndex.append(topDict)
|
self.topDictIndex.append(topDict)
|
||||||
for element in content:
|
for element in content:
|
||||||
if isinstance(element, str):
|
if isinstance(element, str):
|
||||||
@ -375,7 +375,7 @@ class CFFFontSet(object):
|
|||||||
filled via :meth:`decompile`.)"""
|
filled via :meth:`decompile`.)"""
|
||||||
self.major = 2
|
self.major = 2
|
||||||
cff2GetGlyphOrder = self.otFont.getGlyphOrder
|
cff2GetGlyphOrder = self.otFont.getGlyphOrder
|
||||||
topDictData = TopDictIndex(None, cff2GetGlyphOrder, None)
|
topDictData = TopDictIndex(None, cff2GetGlyphOrder)
|
||||||
topDictData.items = self.topDictIndex.items
|
topDictData.items = self.topDictIndex.items
|
||||||
self.topDictIndex = topDictData
|
self.topDictIndex = topDictData
|
||||||
topDict = topDictData[0]
|
topDict = topDictData[0]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user