Skip to content

Commit

Permalink
Merge pull request #3184 from fonttools/propagate-hidden-flag
Browse files Browse the repository at this point in the history
[FontBuilder] Propagate the 'hidden' flag to the fvar Axis instance
  • Loading branch information
justvanrossum committed Jun 26, 2023
2 parents 44cfe35 + 014e6c5 commit 5d42fd7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Lib/fontTools/fontBuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -971,6 +971,8 @@ def addFvar(font, axes, instances):
axis_def.maximum,
axis_def.name,
)
if axis_def.hidden:
axis.flags = 0x0001 # HIDDEN_AXIS

if isinstance(name, str):
name = dict(en=name)
Expand Down

0 comments on commit 5d42fd7

Please sign in to comment.