Skip to content

Commit

Permalink
update code-tests to be able to use newer axisregistry version 0.4.8
Browse files Browse the repository at this point in the history
(issue #4516)
  • Loading branch information
felipesanches committed Feb 21, 2024
1 parent cf42942 commit d851dea
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions tests/profiles/googlefonts_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2922,23 +2922,31 @@ def test_check_metadata_category():
# Open Sans' origin is Light so this should pass
(
TEST_FILE("varfont/OpenSans[wdth,wght].ttf"),
{2: "Regular", 17: "Light"},
{
NameID.FONT_SUBFAMILY_NAME: "Regular",
NameID.TYPOGRAPHIC_SUBFAMILY_NAME: "Light",
},
PASS,
),
(
TEST_FILE("varfont/OpenSans[wdth,wght].ttf"),
{2: "Regular", 17: "Condensed Light"},
{
NameID.FONT_SUBFAMILY_NAME: "Regular",
NameID.TYPOGRAPHIC_SUBFAMILY_NAME: "Condensed Light",
},
FAIL,
),
(TEST_FILE("varfont/RobotoSerif[GRAD,opsz,wdth,wght].ttf"), {}, PASS),
(TEST_FILE("varfont/RobotoSerif[GRAD,opsz,wdth,wght].ttf"), {}, FAIL),
# Roboto Serif has an opsz axes so this should pass
(
TEST_FILE("varfont/RobotoSerif[GRAD,opsz,wdth,wght].ttf"),
{
NameID.FONT_FAMILY_NAME: "Roboto Serif 20pt",
NameID.FONT_FAMILY_NAME: "Roboto Serif",
NameID.FONT_SUBFAMILY_NAME: "Regular",
NameID.TYPOGRAPHIC_FAMILY_NAME: "Roboto Serif",
NameID.TYPOGRAPHIC_SUBFAMILY_NAME: "20pt Regular",
NameID.FULL_FONT_NAME: "Roboto Serif Regular",
NameID.POSTSCRIPT_NAME: "RobotoSerif-Regular",
NameID.TYPOGRAPHIC_FAMILY_NAME: None,
NameID.TYPOGRAPHIC_SUBFAMILY_NAME: None,
},
PASS,
),
Expand Down

0 comments on commit d851dea

Please sign in to comment.