4 ms·
> So what does it mean if you have <i> around Chinese, or Devangari or what have you? Do you just apply shear to make the text slanted? Actually, yes! <i> is s
by csande17 4y ago
> So what does it mean if you have <i> around Chinese, or Devangari or what have you? Do you just apply shear to make the text slanted?
Actually, yes! <i> is still defined in the standard to use the italic font style: https://html.spec.whatwg.org/#phrasing-content-3 https://html.spec.whatwg.org/#phrasing-content-3
And if there isn't an italic version of the font (often the case for Chinese etc), https://w3c.github.io/csswg-drafts/css-fonts/#font-style-prop https://w3c.github.io/csswg-drafts/css-fonts/#font-style-pro... says the browser should programatically shear it:
> If no italic or oblique face is available, oblique faces may be synthesized by rendering non-obliqued faces with an artificial obliquing operation.