Skip to content

[ir] Also interpolate width/height etc in instances#1658

Merged
cmyr merged 1 commit into
mainfrom
also-interpolate-width-and-height
Sep 26, 2025
Merged

[ir] Also interpolate width/height etc in instances#1658
cmyr merged 1 commit into
mainfrom
also-interpolate-width-and-height

Conversation

@cmyr

@cmyr cmyr commented Sep 25, 2025

Copy link
Copy Markdown
Member

This also more generally reworks the interpolation code so that it all lives in one place (methods on GlyphInstance).

@cmyr cmyr force-pushed the also-interpolate-width-and-height branch from 2f2065b to f809ca5 Compare September 25, 2025 19:40
Comment thread fontir/src/glyph.rs Outdated
Comment thread fontir/src/ir.rs
///
/// - the (x,y) values of points in any contours, in order
/// - the decomposed transform of any components, in order
/// - the width, height, and vertical origin (if present).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

anchor positions also interpolate... in fact Glyphs.app anchor propagation works even when a composite glyph inherit anchors from a component that doesn't have a given location, which gets interpolated on the fly

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm yea anchors aren't part of ir::Glyph, so we'll need to do that separately (opened #1661)

This also more generally reworks the interpolation code so that it all
lives in one place (methods on `GlyphInstance`).
Base automatically changed from ensure_composite_defined_at_comp_location to main September 26, 2025 17:22
@cmyr cmyr force-pushed the also-interpolate-width-and-height branch from f809ca5 to f0a4409 Compare September 26, 2025 17:23
@cmyr cmyr added this pull request to the merge queue Sep 26, 2025
Merged via the queue into main with commit a9c70a4 Sep 26, 2025
12 checks passed
@cmyr cmyr deleted the also-interpolate-width-and-height branch September 26, 2025 17:36
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.

2 participants