Skip to content

[ir] Decompose components with intermediate layers#1660

Merged
cmyr merged 1 commit into
mainfrom
decompose-with-intermediate-layers
Sep 26, 2025
Merged

[ir] Decompose components with intermediate layers#1660
cmyr merged 1 commit into
mainfrom
decompose-with-intermediate-layers

Conversation

@cmyr

@cmyr cmyr commented Sep 25, 2025

Copy link
Copy Markdown
Member

on top of #1659

...and actually make sure that the final glyph is also defined at all
the positions defined by any component.
Base automatically changed from cleanup-ir-glyph-tests to main 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 33e8b6c Sep 26, 2025
12 checks passed
@cmyr cmyr deleted the decompose-with-intermediate-layers branch September 26, 2025 18:30
anthrotype added a commit that referenced this pull request Apr 22, 2026
Remove the ensure_composite_defined_at_component_locations call from
flatten_non_export_components_for_glyph. The flattening loop only needs
to process the composite's own source locations — get_or_instantiate_instance
already handles resolving components at those locations.

The call was added in PR #1657 (for #1592) but became redundant when
PR #1660 added the same call to convert_components_to_contours, which
handles the decomposition step where the extra sources are actually
needed. With the call in both places, virtual sources from component
brace layers leaked into the composite's source map and produced
spurious gvar intermediate tuples.

Fixes #1840
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