Skip to content

Commit

Permalink
googlefonts/font_names: raise warn for families with MORF axis
Browse files Browse the repository at this point in the history
  • Loading branch information
m4rc1e committed Nov 1, 2024
1 parent 010d006 commit 21152cf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Lib/fontbakery/checks/vendorspecific/googlefonts/name.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,15 @@ def check_name_familyname_first_char(ttFont):
)
def check_font_names(ttFont, ttFonts):
"""Check font names are correct"""
if "fvar" in ttFont and "MORF" in [a.axisTag for a in ttFont["fvar"].axes]:
yield WARN, Message(
"morf-axis",
"Font has a Morph axis. This check only works on fonts that "
"have a wght axis. Since users can define their own stylenames "
"for Morph families, please manually check that the family works "
"on major platforms. You can use Agu Display as a reference.",
)
return
expected_names = expected_font_names(ttFont, ttFonts)

def style_names(nametable):
Expand Down

0 comments on commit 21152cf

Please sign in to comment.