Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
m4rc1e committed Sep 18, 2024
1 parent 4d5d6db commit 3e832ef
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,11 @@ def remote_styles(font):
for font in remote_fonts:
if "fvar" in font:
for instance in font["fvar"].instances:
inst_subfamily = font["name"].getName(
instance.subfamilyNameID, 3, 1, 0x409
).toUnicode()
inst_subfamily = (
font["name"]
.getName(instance.subfamilyNameID, 3, 1, 0x409)
.toUnicode()
)
rstyles[inst_subfamily] = font
else:
rstyles[font["name"].getBestSubFamilyName()] = font
Expand Down
6 changes: 5 additions & 1 deletion Lib/fontbakery/checks/vendorspecific/googlefonts/varfont.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ def check_axes_match(ttFont, remote_style):
remote_axes = {
a.axisTag: (a.minValue, a.maxValue) for a in remote_style["fvar"].axes
}
font_axes = {a.axisTag: (a.minValue, a.maxValue) for a in ttFont["fvar"].axes if a.axisTag != "opsz"}
font_axes = {
a.axisTag: (a.minValue, a.maxValue)
for a in ttFont["fvar"].axes
if a.axisTag != "opsz"
}

missing_axes = []
for axis, remote_axis_range in remote_axes.items():
Expand Down

0 comments on commit 3e832ef

Please sign in to comment.