- From: r12a via GitHub <sysbot+gh@w3.org>
- Date: Tue, 25 Jul 2023 11:48:31 +0000
- To: public-css-archive@w3.org
There is a fly in this ointment that i think may be worth noting. I created another test that included N'Ko but also Arabic, Hebrew, and Ukrainian. It turns out that if there is a font with an italic face, the oblique value gives way to that font, which is, if i read it correctly, what the spec expects. https://github.com/w3c/character_phrase_tests/issues/60 No font-family styling is set in the test page, so the result will be a little unpredictable because it relies on fallback fonts. In my case, the result is: <img width="545" alt="Screenshot 2023-07-25 at 08 48 48" src="https://github.com/w3c/csswg-drafts/assets/4839211/a243dfdb-3328-44c3-b6a5-ce00c2360911"> There is no italic font for N'Ko, so the oblique styling applies, the default Arabic font set by me in my browser also has no italic correspondence, so same result. For Hebrew and Ukrainian, the text does get rendered by fallback fonts which have italic versions. Consequently, the left-leaning oblique setting is not applied, and the italic font face is applied - however, these fonts lean to the right. Also note that the italic font uses very different shapes for some letters than the regular font in cyrillic. CSS seems to currently be assuming that oblique and italics are the same thing, but i'm not sure that that always holds. This is shown clearly here, where the current mechanism spoils the attempt to have a left-leaning slant. It may also be that authors want to slant regular glyphs rather than introduce the quite different glyph shapes associated with 'italicisation' in cyrillic, or they may want to use the italic font face, but slant it to the left(?). It seems to me that you can turn off oblique synthesis using font-synthesis-style: none, but i wonder whether there should be another value, perhaps `synthesise`, that prevents the automatic default to a random italic font, and allows the author to slant an existing font face, even an italic one, in the opposite direction?? -- GitHub Notification of comment by r12a Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8914#issuecomment-1649678597 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 25 July 2023 11:48:32 UTC