Skip to content

Use 32-bit GlyphId - #152

Merged
dhardy merged 1 commit into
masterfrom
push-wwqnrkxxxtpp
Aug 25, 2026
Merged

Use 32-bit GlyphId#152
dhardy merged 1 commit into
masterfrom
push-wwqnrkxxxtpp

Conversation

@dhardy

@dhardy dhardy commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

This is a behavioural change: glyph indices greater than 0xFFFF are no longer automatically rejected on lookup.

This costs nothing in this library (even the Glyph struct is the same size). It costs a tiny bit of complexity in Kas but nothing significant (though Kas still rejects glyphs > 0xFFFF since (a) its quantization format only reserves 16 bits for this and (b) Kas uses Swash or ab_glyph for rendering which both only support 16-bit glyph indices.

@dhardy
dhardy merged commit f6f4777 into master Aug 25, 2026
6 checks passed
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.

1 participant