googlefonts / science-gothic

Science Gothic, a libre variable font
Other
142 stars 4 forks source link

Vertical metrics revision #292

Closed tphinney closed 2 years ago

tphinney commented 2 years ago

Vertical metrics need an overhaul to match current Google guidance (https://github.com/googlefonts/gf-docs/blob/main/VerticalMetrics/README.md)

tphinney commented 2 years ago

Here are the inputs and calculations, following said guidance

Highest point: 2287 Aringacute in BlackExpanded: Lowest point: -687 commaaccent below in BlackExpanded Linegap should be zero hhea = sTypo usWin = max/min 2287 / -687

cap height: 1400 Agrave ymax: 1800 UPM: 2048 real descender max: -428

hhea/typoAscender: 1800(+) vertically centering values hhea/typoAscender: 1828 hhea/typoDescender: -428 Total is then: 2256, which is only 10% more than the UPM Google recommendation is to total 20-30% more. Add 102 to both, and we get 2460, which is 20.11% more than the UPM hhea/typoAscender: 1930 hhea/typoDescender: -530