googlefonts / gfregression

Test local fonts against fonts host on fonts.google.com
Apache License 2.0
14 stars 10 forks source link

[VF] Warn users if no instances exist in fvar #41

Open m4rc1e opened 5 years ago

m4rc1e commented 5 years ago

In RobotoVF, the font Roboto-VF.ttf contains no instances in the fvar table.

>>> from fontTools.ttLib import TTFont
>>> f = TTFont('/Users/marc/Downloads/Roboto-VF.ttf')
>>> f['fvar'].instances
[]

fvar instances are used in GFR to generate css classes.

cc @laerm0