Skip to content

[ir] Don't round when computing deltas for intermediates#1670

Merged
cmyr merged 1 commit into
mainfrom
no-round-when-interpolating-instances
Sep 30, 2025
Merged

[ir] Don't round when computing deltas for intermediates#1670
cmyr merged 1 commit into
mainfrom
no-round-when-interpolating-instances

Conversation

@cmyr

@cmyr cmyr commented Sep 30, 2025

Copy link
Copy Markdown
Member

This was a sneaky little bug: the rounding of intermediate values caused us to incorrectly interpolate affine transformations that contained fractional values.

This matches ufo2ft, which sets round_geometry=False on the instantiator.

This resolves a number of gvar diffs, and Should give us at least a +4 identical.

Comment thread fontir/src/glyph.rs Outdated
This was a sneaky little bug: the rounding of intermediate values caused
us to incorrectly interpolate affine transformations that contained
fractional values.
@cmyr cmyr force-pushed the no-round-when-interpolating-instances branch from 2924779 to 06d631d Compare September 30, 2025 16:52
@cmyr cmyr added this pull request to the merge queue Sep 30, 2025
Merged via the queue into main with commit cdba101 Sep 30, 2025
12 checks passed
@cmyr cmyr deleted the no-round-when-interpolating-instances branch September 30, 2025 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants