Skip to content

Add set and lookup glyph collection to C API - #501

Merged
dfrg merged 1 commit into
mainfrom
ffi-layout-space-lookups
Oct 7, 2026
Merged

dfrg merged 1 commit into
mainfrom
ffi-layout-space-lookups

Conversation

@dfrg

@dfrg dfrg commented Oct 5, 2026

Copy link
Copy Markdown
Collaborator

Expose hr_set and GSUB/GPOS presence and lookup count queries. Collect glyph roles from direct and contextual lookup subtables, including nested GSUB substitutions, using read-fonts without temporary sets.

Add focused C API regression tests and an optional differential harness. Compared 79 lookups across five fonts with HarfBuzz and found no set differences; all 115 C API tests and Clippy pass.

Expose hr_set and GSUB/GPOS presence and lookup count queries. Collect glyph roles from direct and contextual lookup subtables, including nested GSUB substitutions, using read-fonts without temporary sets.

Add focused C API regression tests and an optional differential harness. Compared 79 lookups across five fonts with HarfBuzz and found no set differences; all 115 C API tests and Clippy pass.
@behdad

behdad commented Oct 5, 2026

Copy link
Copy Markdown
Member

Nice. Maybe ask assistant to fully map set / map etc APIs.

@behdad
behdad self-requested a review October 5, 2026 21:42
@dfrg

dfrg commented Oct 7, 2026

Copy link
Copy Markdown
Collaborator Author

Filed #504 to track extending the API

@dfrg
dfrg merged commit e70caab into main Oct 7, 2026
3 checks passed
@dfrg
dfrg deleted the ffi-layout-space-lookups branch October 7, 2026 11:28
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