1
0
mirror of https://github.com/google/fonts.git synced 2024-12-18 14:21:47 +03:00
fonts/axisregistry/tests/test_axisregistry_api.py
Nathan Williams 1f5d64a60b
Squashed 'axisregistry/' changes from 3158f45e..4e862682 (#4618)
4e862682 Merge pull request #36 from googlefonts/davelab6-tooltip-fixes
948129a4 Merge pull request #39 from googlefonts/tox
81aa9727 run black
15b9f574 update tox
80e36bf3 weight and width textprotos updated to say stroke weight
796f577b y_transparent_descender.textproto Use depth, not height
ed29279d Creating `flair.svg`

git-subtree-dir: axisregistry
git-subtree-split: 4e86268272
2022-05-09 15:37:11 -07:00

15 lines
494 B
Python

from axisregistry import AxisRegistry
def test_AxisRegistry():
registry = AxisRegistry()
assert "GRAD" in registry.keys()
for axis_tag in registry.keys():
assert len(axis_tag) == 4
for f in range(len(registry[axis_tag].fallback)):
fallback = registry[axis_tag].fallback[f]
# fallback names should not be space-separated.
# (see: https://github.com/googlefonts/axisregistry/issues/7)
assert " " not in fallback.name