From 64fc028eee6264405632b176762920cf94af12ea Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 31 Mar 2022 15:31:45 -0600 Subject: [PATCH] [cffLib] Fix calls to TopDictIndex() Fixes https://github.com/fonttools/fonttools/issues/1847 --- Lib/fontTools/cffLib/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/fontTools/cffLib/__init__.py b/Lib/fontTools/cffLib/__init__.py index 07d0d5136..422bcd0f5 100644 --- a/Lib/fontTools/cffLib/__init__.py +++ b/Lib/fontTools/cffLib/__init__.py @@ -337,7 +337,7 @@ class CFFFontSet(object): topDict = TopDict( GlobalSubrs=self.GlobalSubrs, cff2GetGlyphOrder=cff2GetGlyphOrder) - self.topDictIndex = TopDictIndex(None, cff2GetGlyphOrder, None) + self.topDictIndex = TopDictIndex(None, cff2GetGlyphOrder) self.topDictIndex.append(topDict) for element in content: if isinstance(element, str): @@ -375,7 +375,7 @@ class CFFFontSet(object): filled via :meth:`decompile`.)""" self.major = 2 cff2GetGlyphOrder = self.otFont.getGlyphOrder - topDictData = TopDictIndex(None, cff2GetGlyphOrder, None) + topDictData = TopDictIndex(None, cff2GetGlyphOrder) topDictData.items = self.topDictIndex.items self.topDictIndex = topDictData topDict = topDictData[0]