Skip to content

Commit

Permalink
Don't fail if a component references a non-existent glyph
Browse files Browse the repository at this point in the history
  • Loading branch information
justvanrossum committed Dec 8, 2023
1 parent 1212cce commit 0ad7b81
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/fontra/backends/copy.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ async def copyGlyphs(
glyphNamesCopied.update(glyphNamesToCopy)
logger.debug(f"reading {glyphName}")
glyph = await sourceBackend.getGlyph(glyphName)
if glyph is None:
logger.warn(f"glyph {glyphName} not found")
continue

logger.debug(f"writing {glyphName}")

componentNames = {
Expand Down

0 comments on commit 0ad7b81

Please sign in to comment.