Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
m4rc1e committed Jul 1, 2022
1 parent cf07219 commit 81ba98e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Lib/axisregistry/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,9 @@ def build_fvar_instances(ttFont, axis_dflts={}):
stat_nameids = []
if "STAT" in ttFont:
if ttFont["STAT"].table.AxisValueCount > 0:
stat_nameids = [av.ValueNameID for av in ttFont["STAT"].table.AxisValueArray.AxisValue]
stat_nameids = [
av.ValueNameID for av in ttFont["STAT"].table.AxisValueArray.AxisValue
]

# rm old fvar subfamily and ps name records
for inst in fvar.instances:
Expand Down
4 changes: 2 additions & 2 deletions tests/test_names.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,9 +500,9 @@ def test_filename(fp, expected):
(opensans_roman_fp, [opensans_cond_roman_fp], True),
(opensans_roman_fp, [opensans_italic_fp], False),
(wonky_fp, [], False),
]
],
)
def test_fvar_instance_collisions(fp, sibling_fps, result):
ttFont = TTFont(fp)
siblings = [TTFont(fp) for fp in sibling_fps]
assert _fvar_instance_collisions(ttFont, siblings) == result
assert _fvar_instance_collisions(ttFont, siblings) == result

0 comments on commit 81ba98e

Please sign in to comment.