Skip to content

Commit

Permalink
fix: retain instance for families that do not have a wght axis
Browse files Browse the repository at this point in the history
  • Loading branch information
m4rc1e committed Oct 31, 2024
1 parent 5472688 commit efc4798
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 efc4798

Please sign in to comment.