-
Notifications
You must be signed in to change notification settings - Fork 715
[css-fonts-5] Removing font-language-override #5484
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
Comments
Yes, it does seem like a rather niche case (this font doesn't support language X, but if I tell the font that this is actually language Y it comes out better for language X). I concur with dropping it (more on the undesirability than the single implementation). |
Cc @jfkthame |
(This issue is about both the property and the descriptor.) |
I don't think it's quite as simple as this. The use case for When it comes to text shaping, however, the functionality in OpenType fonts is driven via tags that are often referred to as "language", but are more formally called "language system" tags. This is not at all the same thing. Quoting from https://docs.microsoft.com/en-us/typography/opentype/spec/languagetags (emphasis added):
The OpenType tag is about a set of typographic conventions, not directly about language (although it is often possible to infer a reasonable default mapping from one to the other).
While many such correlations are documented, there is no claim to completeness, and given the complexity (and ever-evolving conventions) of human language and writing systems, it would be futile to expect it.
For example, the OT tag registry includes 5 different tags for Karen languages: So I am opposed to dropping this. Yes, it's a niche use case, but it is a valid one; I strongly disagree with labelling it "undesirable". |
I don't know enough to make a case for it either way, but we have this working, so there will two shipping implementations at some point. As a philosophical argument was raised, it's similar to the fallback requested for hyphenation in #5270. I think most of the arguments made here apply to that issue as well. |
cc @r12a |
I agree with @jfkthame. There must be plenty of minority or less-common languages which, labelled properly, would not trigger the shaping required from a font, whereas the OT tag could be used to indicate that "the rules appropriate to <some_other_language> work also for this language". Here's another example. The Scheherazade font has the ability to turn this: into this, for Kurdish (exactly the same code points): Kurdish can be labelled using So, basically, hth |
Okay. How about this related question, then: What would have to happen in order to make it acceptable to remove font-language-override? Adding more flexibility to BCP language tags? Something else? |
I think we need a well-defined interoperable way to compute OpenType language system tags. Maybe in OpenType spec or in CLDR? |
This is coming up again, due to WebKit/WebKit#14837 A few new thoughts:
|
Looks like CLDR is adding support for OpenType language tags: https://unicode-org.atlassian.net/browse/CLDR-337 / MicrosoftDocs/typography-issues#1030 |
The issue CLDR-337 appears to be closed as "out of scope", afaics. |
Maybe it's the name of the property that is the stumbling-block here, to some extent. Would it be better if it were called A request for a non- |
I don't think so - typographic conventions are already applied by |
font-language-override is only implemented by one engine, and has been at risk for a long time.
Philosophically, there shouldn't be two places authors can specify language to get correct text shaping.
We should remove font-language-override from the spec.
The text was updated successfully, but these errors were encountered: