Re: [csswg-drafts] [css-fonts-4] Extend font-language-override to override OpenType "script" as well

Just for posterity, I pulled this because neither Firefox, Chrome, Safari nor Prince agreed with my assessment. As inconceivable as it seems to me, I was clearly missing something.

It's that Harfbuzz (the OpenType layout engine which I suspect underlies all these products) will choose "latn" as the script of choice if the font has no "dflt" script. hb-ot-layout.cc line 1345: `try with 'latn'; some old fonts put their features there even though they're really trying to support Thai, for example :(`. Harfbuzz was tested against MS Uniscribe, so it's pretty much correct-by-definition regardless of what the (slightly sloppy) OpenType spec says.

Theoretically there's still a need for this, or something like it. But I presume "font-language-override" came about due to an actual case where it was required. I no longer have one of those to back up this issue, so it's probably best I leave this one closed.

-- 
GitHub Notification of comment by faceless2
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3178#issuecomment-425480648 using your GitHub account

Received on Friday, 28 September 2018 15:52:44 UTC