Skip to content

Create base glyphs and clip list#1741

Merged
rsheeter merged 1 commit into
mainfrom
colr1a
Nov 11, 2025
Merged

Create base glyphs and clip list#1741
rsheeter merged 1 commit into
mainfrom
colr1a

Conversation

@rsheeter

Copy link
Copy Markdown
Contributor

Always solid color. Baby steps :)

@rsheeter rsheeter force-pushed the colr1a branch 6 times, most recently from 9e9dcc6 to b2a1767 Compare November 11, 2025 18:36
Comment thread fontbe/src/colr.rs
let next_glyph = context
.glyphs
.get(&WorkId::GlyfFragment(glyph_name.clone()).into());
let next_clip = next_glyph.data.bbox().unwrap_or_default();

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.

ufo2ft quantizes clipBoxes to 1/10th of the upem (e.g. 100 units for 1000 UPEM) to increase the chance of them getting reused. Search for "colrClipBoxQuantization" in ufo2ft.
Maybe for later

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think I'll save that for now, but good to know about

@anthrotype anthrotype left a comment

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.

LGTM

Comment thread fontbe/src/colr.rs Outdated
@rsheeter rsheeter added this pull request to the merge queue Nov 11, 2025
Merged via the queue into main with commit ccd4677 Nov 11, 2025
12 checks passed
@rsheeter rsheeter deleted the colr1a branch November 11, 2025 23:52
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