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

[inconsistencies_between_fvar_stat] and [opentype/stat_has_axis_value_tables] do the same thing #4916

Open
simoncozens opened this issue Nov 27, 2024 · 2 comments
Assignees
Milestone

Comments

@simoncozens
Copy link
Collaborator

Both of these checks:

  • loop over the fvar table's named instances
  • loop over the instance's coordinates in axis/value pairs
  • find a STAT table design axis entry for the axis
  • and check that it has a value entry for the instance's value.

opentype/stat_has_axis_value_tables gathers the axis/values from the STAT table first and uses that to compare against the instance values, but otherwise they're identical. inconsistencies_between_fvar_stat claims to check "if STAT entries matches fvar and vice versa", but it does not do the "vice versa". They're the same check.

@felipesanches
Copy link
Collaborator

Would it be acceptable to simply deprecate one of them? Which one?

@simoncozens
Copy link
Collaborator Author

Yes, we should deprecate one. The spec says:

In a variable font, it is strongly recommended that axis value tables be included for every element of typographic subfamily names for all of the named instances defined in the 'fvar' table.

So it's a strong recommendation but not a requirement; so not strictly an OpenType profile check. I suggest we deprecate opentype/stat_has_axis_value_tables, because the other one (inconsistencies...) potentially has a wider scope in the future, checking back from the fvar table to the STAT table.

@felipesanches felipesanches self-assigned this Nov 29, 2024
@felipesanches felipesanches added this to the 0.13.0 milestone Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants