Skip to content

Commit

Permalink
googlefonts/axes_match: skip if remote_style is static
Browse files Browse the repository at this point in the history
(PR #4924)
  • Loading branch information
m4rc1e authored Dec 13, 2024
1 parent 8d68dd6 commit 4da99f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ A more detailed list of changes is available in the corresponding milestones for
#### On the Universal Profile
- **[kerning_for_non_ligated_sequences]**: "Is there kerning info for non-ligated sequences?" (issue #2954 / https://github.com/simoncozens/fontspector/commit/eaa52447ddc4a42e26b6430841a43026870d8a48)

### Changes to existing checks
### On the Google Fonts profile
- **[googlefonts/axes_match]:** Skip if remote_style is static


## 0.13.0a6 (2024-Dec-03)
### Noteworthy code-changes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from fontbakery.prelude import FAIL, PASS, Message, check
from fontbakery.prelude import SKIP, FAIL, PASS, Message, check


@check(
Expand All @@ -11,6 +11,9 @@
)
def check_axes_match(ttFont, remote_style):
"""Check if the axes match between the font and the Google Fonts version."""
if "fvar" not in remote_style:
yield SKIP, "Remote style is a static font."
return
remote_axes = {
a.axisTag: (a.minValue, a.maxValue) for a in remote_style["fvar"].axes
}
Expand Down

0 comments on commit 4da99f9

Please sign in to comment.