From dc78357b6567010762a85ea3f73bf279b41e426d Mon Sep 17 00:00:00 2001 From: Skef Iterum Date: Wed, 24 May 2023 09:14:48 -0700 Subject: [PATCH] Update otfFont for missing glyphname (fontTools change? makeotf change?) --- python/afdko/otfautohint/otfFont.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/afdko/otfautohint/otfFont.py b/python/afdko/otfautohint/otfFont.py index d4b0f276f..1fe0b6b43 100644 --- a/python/afdko/otfautohint/otfFont.py +++ b/python/afdko/otfautohint/otfFont.py @@ -529,7 +529,10 @@ def getPrivateFDDict(self, allow_no_blues, noFlex, vCounterGlyphs, return fdDictArray, gl_vsindex def getfdIndex(self, name): - gid = self.ttFont.getGlyphID(name) + try: + gid = self.ttFont.getGlyphID(name) + except KeyError: + return None if gid is None: return None if hasattr(self.topDict, "FDSelect"):