Skip to content

Commit

Permalink
Skip non-exported glyphs when compatibility checking (#840)
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncozens authored Jan 5, 2022
1 parent 74eeaf4 commit 24ce22a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Lib/fontmake/compatibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ def __init__(self, fonts):

def check(self):
first = self.fonts[0]
skip_export_glyphs = set(first.lib.get("public.skipExportGlyphs", ()))
for glyph in first.keys():
if glyph in skip_export_glyphs:
continue
self.current_fonts = [font for font in self.fonts if glyph in font]
glyphs = [font[glyph] for font in self.current_fonts]
with Context(self, f"glyph {glyph}"):
Expand Down

0 comments on commit 24ce22a

Please sign in to comment.