Skip to content

Commit

Permalink
missing_glyphsets_in_font: check keys not values
Browse files Browse the repository at this point in the history
  • Loading branch information
m4rc1e committed Jun 28, 2022
1 parent 8ccf242 commit f0a1af2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/glyphsets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __getitem__(self, k):

def missing_glyphsets_in_font(self, ttFont, threshold=0.8):
glyphs_in_font = set(ttFont.getGlyphOrder())
unicodes_in_font = set(ttFont.getBestCmap().values())
unicodes_in_font = set(ttFont.getBestCmap().keys())
res = {}
for g in self["glyphs"]:
for glyphset in g["glyphsets"]:
Expand Down

0 comments on commit f0a1af2

Please sign in to comment.