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

Here’s a picture with more samples:

https://s.tonsky.me/imgs/font_size.png

There’s nothing to hide: some fonts’ height adds up to font-size, some don’t. Because it’s not a rule, you can’t rely on it, so it doesn’t change a narrative.

Fira Code is one of the fonts that don’t add up, though. 31.19 != 32, no matter how hard you massage it.

P.S. for other examples, I also chose the extreme examples to better illustrate the point. But I only chose relatively well-known fonts, so it’s not all random or manipulated.



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

Search: