googlefonts / roboto-2

The Roboto family of fonts
Apache License 2.0
3.85k stars 309 forks source link

Generate hinted fonts. #264

Closed m4rc1e closed 4 years ago

m4rc1e commented 7 years ago

Previous tagged releases have included a hinted version of Roboto. This version is generated by using scripts/touchup_for_web.py only.

For further information see #261


I'm fairly certain touchup_for_web.py was used because the old v2.136 hinted fonts have the same vertical metric values as this script sets. No other touchup script sets vertical metric values.

v2.136 Roboto-Regular.ttf:

hhea ascent: 1900
hhea descent: -500

OS/2 sTypoAscender: 1536
OS/2 sTypoDescender: -512
OS/2 sTypoLineGap: 102
OS/2 usWinAscent: 1946
OS/2 usWinDescent: 512

Values from script


hhea = font['hhea']
hhea.ascent = 1900
hhea.descent = -500

os2 = font['OS/2']
os2.sTypoAscender = 1536
os2.sTypoDescender = -512
os2.sTypoLineGap = 102
os2.usWinAscent = 1946
os2.usWinDescent = 512
``
m4rc1e commented 7 years ago

@anthrotype Thanks!

davelab6 commented 6 years ago

@m4rc1e should this be merged?

m4rc1e commented 6 years ago

@davelab6 yep

kyrias commented 5 years ago

Any updates on this?

davelab6 commented 4 years ago

@kyrias thanks for your interest; since Q4 2017, we've been working on a few different ways to upgrade Roboto to the now not so new variable font technology, and this got postponed by that. I see no harm in merging it now for posterity :)