We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c5fadc commit 5fa3df9Copy full SHA for 5fa3df9
1 file changed
Lib/fontbakery/checks/opentype/monospace.py
@@ -166,10 +166,11 @@ def check_monospace(ttFont, glyph_metrics_stats):
166
f"{PANOSE_expected(family_type)}",
167
)
168
169
- num_glyphs = len(ttFont["glyf"].glyphs)
+ glyph_names = ttFont.getGlyphNames()
170
+ num_glyphs = len(glyph_names)
171
unusually_spaced_glyphs = [
172
g
- for g in ttFont["glyf"].glyphs
173
+ for g in glyph_names
174
if g not in [".notdef", ".null", "NULL"]
175
and ttFont["hmtx"].metrics[g][0] != 0
176
and ttFont["hmtx"].metrics[g][0] != most_common_width
0 commit comments