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

fea-rs: conditional compilation of GPOS & GSUB #703

Merged
merged 3 commits into from
Feb 6, 2024
Merged

fea-rs: conditional compilation of GPOS & GSUB #703

merged 3 commits into from
Feb 6, 2024

Conversation

cmyr
Copy link
Member

@cmyr cmyr commented Feb 6, 2024

This passes these options through to the compile step, which will skip processing the relevant statements if the corresponding table is not desired.

/// as the number of errors you expect to encounter.
///
/// [`DiagnosticSet`]: crate::DiagnosticSet
pub fn max_error_messages(mut self, max_n_errors: usize) -> Self {
Copy link
Contributor

Choose a reason for hiding this comment

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

Optional, I think I might have expected an option (-1?) to print all of them

Copy link
Member Author

Choose a reason for hiding this comment

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

this is my fault for trying to be funny in my docs. Can update to just say usize::MAX, the joke isn't good anyway 😅

cmyr added 3 commits February 6, 2024 12:49
This is in anticipation of adding additional Opts (specifically for only
compiling certain tables) and I'd like `Opts` to be the source of truth
for user configuration.
Opts are now available during compilation.

This also adds (currently unused) options to specify if you want gpos &
gsub to be compiled.
This is a fairly quick pass, and if future profiling suggests it is
useful we could be more fine-grained in deciding what code to skip
executing. In particular we still perform the full validation pass,
where we could skip some work there as well.
@cmyr cmyr added this pull request to the merge queue Feb 6, 2024
Merged via the queue into main with commit 0b05e52 Feb 6, 2024
10 checks passed
@cmyr cmyr deleted the fea-opts branch February 6, 2024 17:59
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