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

Warn rather than fail if min/max of a condition table range are reversed #285

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

jfkthame
Copy link
Collaborator

@jfkthame jfkthame commented Oct 1, 2024

An improperly ordered filter range is a non-fatal error; just issue a warning.

Condition table format 1 is described at
https://learn.microsoft.com/en-gb/typography/opentype/spec/chapter2#condition-table-format-1-font-variation-axis-range

In mozilla bug https://bugzilla.mozilla.org/show_bug.cgi?id=1916037, we saw fonts being rejected due to incorrectly-ordered min/max values in this table, but this does not need to be a hard error.

@jfkthame jfkthame force-pushed the filter-range-warning branch from cd16f60 to e20e492 Compare October 1, 2024 17:48
src/layout.cc Outdated Show resolved Hide resolved
…rning.

Condition table format 1 is described at
https://learn.microsoft.com/en-gb/typography/opentype/spec/chapter2#condition-table-format-1-font-variation-axis-range

In mozilla bug https://bugzilla.mozilla.org/show_bug.cgi?id=1916037, we saw
fonts being rejected due to incorrectly-ordered min/max values in this table,
but this does not need to be a hard error; we can just issue a warning.
@jfkthame jfkthame force-pushed the filter-range-warning branch from e20e492 to 2f38c58 Compare October 1, 2024 18:46
@khaledhosny khaledhosny merged commit 874862a into khaledhosny:main Oct 2, 2024
5 checks passed
@jfkthame jfkthame deleted the filter-range-warning branch October 4, 2024 12:37
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