From f039ec91cdfaf777f6f6301d53de54ad0b773e81 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 8 Jan 2024 13:48:01 -0700 Subject: [PATCH] Update to latest fontra-rcjk --- varcFont.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/varcFont.py b/varcFont.py index d2682bf..db28349 100644 --- a/varcFont.py +++ b/varcFont.py @@ -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