Skip to content

Commit

Permalink
Use MathGlyph's "strict" flag
Browse files Browse the repository at this point in the history
This fixes googlefonts#961, and makes instantiator.py as strict as varLib when interpolating.

Depends on robotools/fontMath#305, though, as fontMath doesn't properly propagate its "strict" flag down to copies.

So this PR should probably also update its fontMath version dependency, once a new fontMath is out.
  • Loading branch information
justvanrossum authored Dec 8, 2022
1 parent 33634a5 commit 987d510
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/fontmake/instantiator.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ def collect_glyph_masters(
source.location, axis_bounds
)
locations_and_masters.append(
(normalized_location, fontMath.MathGlyph(source_glyph))
(normalized_location, fontMath.MathGlyph(source_glyph, strict=True))
)

# Filter out empty glyphs if the default glyph is not empty.
Expand Down

0 comments on commit 987d510

Please sign in to comment.