masakudamatsu / line-height-picker

A front-end web app that helps web designers/developers pick the best line-height value for their websites
https://line-height-picker.vercel.app
MIT License
2 stars 1 forks source link

Extract hhea.ascender/descender/lineGap from font file #191

Closed masakudamatsu closed 4 years ago

masakudamatsu commented 4 years ago

https://glyphsapp.com/tutorials/vertical-metrics

The above article recommends setting the hhea and typo values to be the same, while using Win values to cover exceptionally tall glyphs to be rendered properly on old Windows software.

But the vast majority of fonts, at least old ones, appear to set HHead and Win values to be the same, including Open Sans.

All these indicate that we should use HHead values.