Skip to content

Commit

Permalink
Update to latest fontra-rcjk
Browse files Browse the repository at this point in the history
  • Loading branch information
behdad committed Jan 8, 2024
1 parent 5774d99 commit f039ec9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions varcFont.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ async def closureGlyph(rcjkfont, glyphs, glyph):
layer = glyph.layers["foreground"]
for component in layer.glyph.components:
if component.name not in glyphs:
try:
componentGlyph = await rcjkfont.getGlyph(component.name)
except KeyError:
componentGlyph = await rcjkfont.getGlyph(component.name)
if componentGlyph is None:
print("Missing component", component.name, "in glyph", glyph.name)
continue
glyphs[component.name] = componentGlyph
Expand Down

0 comments on commit f039ec9

Please sign in to comment.