fontbuild: append " BETA" to style name of light weights

This commit is contained in:
Rasmus Andersson 2019-02-03 19:45:20 -08:00
parent 394903de52
commit a2a3ebff13

View file

@ -206,7 +206,11 @@ def setFontInfo(font, weight):
# ufo3/fontinfo.plist.md
# For OpenType NAME table IDs, see
# https://docs.microsoft.com/en-us/typography/opentype/spec/name#name-ids
#
# Add " BETA" to light weights
if weight < 400:
font.info.styleName = font.info.styleName + " BETA"
family = font.info.familyName # i.e. "Inter"
style = font.info.styleName # e.g. "Medium Italic"