3 ms·
This is indeed surprising. CSS to the opposite handles this correctly and allows fine-grained control. The synthetic substitutions still exist, but only if you
by moritzwarhier 3y ago
This is indeed surprising.
CSS to the opposite handles this correctly and allows fine-grained control.
The synthetic substitutions still exist, but only if you fail to provide the font variants.
If I'm not mistaken, browsers still allow using embedded font variants if they are available in e.g. one OTF file
- addaon 3y agoCSS may handle this correctly in theory, but real implementations still have challenges with fonts that provide separate oblique and italic styles. [1] https://stackoverflow.com/questions/60746818/how-can-i-use-both-the-oblique-and-italic-styles-of-victor-mono-in-vs-code/60746819#60746819 https://stackoverflow.com/questions/60746818/how-can-i-use-b... [2] https://stackoverflow.com/questions/58073983/how-to-show-different-italic-and-oblique-styles-when-the-font-provides-them https://stackoverflow.com/questions/58073983/how-to-show-dif...
- moritzwarhier 3y agoOK, valid complaint, but honestly this is the first time I hear about the font style "oblique". Wikipedia says > Oblique type is a form of type that slants slightly to the right, used for the same purposes as italic type. Unlike italic type, however, it does not use different glyph shapes; it uses the same glyphs as roman type, except slanted So the use case for both italic and oblique font styles in the same document is very... opaque to me :) Sounds like a case of the perfect vs the good
- addaon 3y agoThe Victor Mono font is an example of a font that provides both. I use Italics for block comments, and Oblique for line comments. Do I need to? No. Does it look way better and make me happy? Yep.