Skip to content

Commit

Permalink
Merge pull request #1054 from googlefonts/morf
Browse files Browse the repository at this point in the history
fix: retain user instances for families that do not have a wght axis
  • Loading branch information
m4rc1e authored Oct 31, 2024
2 parents d23ad21 + efc4798 commit d40eb15
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Lib/gftools/fix.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,9 @@ def fix_fvar_instances(ttFont, axis_dflts=None) -> FixResult:
if "fvar" not in ttFont:
return False, []

if "wght" not in [a.axisTag for a in ttFont["fvar"].axes]:
return False, []

fvar = ttFont["fvar"]
old_instances = {
(
Expand Down

0 comments on commit d40eb15

Please sign in to comment.