Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



CSS 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-b...

[2] https://stackoverflow.com/questions/58073983/how-to-show-dif...


OK, 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


The 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: