File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -746,7 +746,7 @@ def com_google_fonts_check_legacy_accents(ttFont):
746
746
# Check whether legacy accents appear in GDEF as marks.
747
747
# Not being marks in GDEF also typically means that they don't have anchors,
748
748
# as font compilers would have otherwise classified them as marks in GDEF.
749
- if "GDEF" in ttFont :
749
+ if "GDEF" in ttFont and ttFont [ "GDEF" ]. table . GlyphClassDef :
750
750
class_def = ttFont ["GDEF" ].table .GlyphClassDef .classDefs
751
751
for glyph in font .glyphs :
752
752
if set (glyph .codepoints ).intersection (LEGACY_ACCENTS ):
@@ -804,7 +804,7 @@ def com_google_fonts_check_arabic_spacing_symbols(ttFont):
804
804
passed = True
805
805
font = babelfont .load (ttFont .reader .file .name )
806
806
807
- if "GDEF" in ttFont :
807
+ if "GDEF" in ttFont and ttFont [ "GDEF" ]. table . GlyphClassDef :
808
808
class_def = ttFont ["GDEF" ].table .GlyphClassDef .classDefs
809
809
for glyph in font .glyphs :
810
810
if set (glyph .codepoints ).intersection (ARABIC_SPACING_SYMBOLS ):
@@ -856,7 +856,7 @@ def com_google_fonts_check_arabic_high_hamza(ttFont):
856
856
passed = True
857
857
font = babelfont .load (ttFont .reader .file .name )
858
858
859
- if "GDEF" in ttFont :
859
+ if "GDEF" in ttFont and ttFont [ "GDEF" ]. table . GlyphClassDef :
860
860
class_def = ttFont ["GDEF" ].table .GlyphClassDef .classDefs
861
861
for glyph in font .glyphs :
862
862
if ARABIC_LETTER_HIGH_HAMZA in set (glyph .codepoints ):
You can’t perform that action at this time.
0 commit comments