Skip to content

Commit

Permalink
Update otfFont for missing glyphname (fontTools change? makeotf change?)
Browse files Browse the repository at this point in the history
  • Loading branch information
skef committed May 24, 2023
1 parent 9e2a763 commit dc78357
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/afdko/otfautohint/otfFont.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand Down

0 comments on commit dc78357

Please sign in to comment.