-
Notifications
You must be signed in to change notification settings - Fork 5
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
unencoded_variants check is often useless #37
Comments
To be fair, only the current use of shaperglot by fontbakery is a valid issue in the first case, but for preferred default glyphs, the unencoded_variants is still giving false negatives. |
I think it was envisaged for the |
Yes, it is. The issue is that in the case of Ŋ, the check flags any font that doesn’t have an alternate Ŋ as a warn. But a font may have been designed for just one language or may have been designed with the already correct shape. Say a font has the n-form of Ŋ, shaperglot will still flag all the 162 languagues as fails as if it had the N-form of Ŋ simply because, when present, the variant is not selected with the locl feature. |
Yes, that check is a tricky one. There is no good way to know for certain which way a font was implemented, so it was set as a warn. We did want to check that if an alternate form was present that it is actually being used by a When we worked on this there was no standard methodology for which Eng form was a default in the font. This is the description of the test I used in the bulk reporting report site.
|
And does the Eng change if you set language to |
No, the default Eng in this font is the preferred form for |
Aah, OK, so shaperglot is making an unwarranted assumption about what is default and what is not. Got it. |
Yes, sorry, that's what I was trying to explain. Where it gets slightly more complex is: in order for a font to claim support for both Sami and African languages, shaperglot needs to check for an alternate Eng. If the font only supports Sami languages, or it only supports African languages (not both), then it does not need to have any alternate Eng glyphs. |
If a font has a character needed for a language but doesn’t support that language, or supports it by default, the unencoded_variants check is useless. Either it reports an alternate missing that isn’t within the scope of the font or reports an alternate missing when the default glyph has already the appropriate shape for that language.
Checking for correct or needed variants is more than just checking that glyphs are present.
The text was updated successfully, but these errors were encountered: