Skip to content

Commit

Permalink
Only set primary script if we know it (googlefonts#746)
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncozens authored and m4rc1e committed Oct 4, 2023
1 parent abc55b1 commit 6ad7f80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/gftools/scripts/add_font.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def _MakeMetadata(args, is_new):
subsets = ['menu'] + subsets_in_font
with ttLib.TTFont(file_family_style_weights[0][0]) as ttfont:
script = primary_script(ttfont)
if script not in ("Latn", "Cyrl", "Grek",):
if script is not None and script not in ("Latn", "Cyrl", "Grek",):
metadata.primary_script = script

metadata.license = font_license
Expand Down

0 comments on commit 6ad7f80

Please sign in to comment.