Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IFT] Add code gen definitions for GlyphKeyed patches #1187

Merged
merged 3 commits into from
Oct 10, 2024
Merged

Conversation

garretrieger
Copy link
Contributor

Second patch format for IFT, see: https://w3c.github.io/IFT/Overview.html#glyph-keyed

Copy link
Member

@cmyr cmyr left a comment

Choose a reason for hiding this comment

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

one concern about a broken FontWrite impl, but otherwise looks good, nice to see you seemingly already quite comfortable with the dustier corners of codegen.

read-fonts/src/tables/ift.rs Show resolved Hide resolved
#[count($glyph_count)]
#[read_with($flags)]
#[traverse_with(skip)]
#[compile(skip)] // TODO remove this once write fonts side is implemented.
Copy link
Member

Choose a reason for hiding this comment

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

are we trying to compile this table? If not maybe it makes more sense to skip the whole table, instead of generating write-fonts code that is going to be incorrect. You can add #[skip_font_write] to skip just this table, although it might also break other tables that reference it..

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In this first pass I'm not going to implement compilation, but I will be adding eventually. So far I've just been using #[compile(skip)] on anything that causes any issues with the plan being to go back and fix it all up once I get to implementing compilation.

@garretrieger garretrieger merged commit f12a117 into main Oct 10, 2024
10 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.

2 participants