Variable Font Validation
Options

Jeremy Dooley
Posts: 67
Is there a validator tool?
Obviously overlaps are ok, but do winding directions make a difference in variable fonts? I ask because I believe that flipped composites are ok. (?)
Obviously overlaps are ok, but do winding directions make a difference in variable fonts? I ask because I believe that flipped composites are ok. (?)
0
Comments
-
Flipped and scaled composites were supposed to be technically okay in TrueType since the beginning, but in fact they tended to cause rendering problems, so I long ago made a point of only using composites unflipped and unscaled.
6 -
I wanted to ask the same question. So I assume it is safer to care about winding directions? Is there a reasonable way to test for them in FontLab 7? (FontAudit doesn't include it, since it's supposed to be fixed upon export, but variable fonts seemingly can't be manipulated with predictable results this way). I tried scripting, but the function I tried to use doesn't work:
<div>from FL import *;<br>f = fl.font;<br>for g in f.glyphs:<br> n = g.GetContoursNumber();<br> for i in range(0,n):<br> cc = g.isContourClockwise(i);<br> print g.name;<br> print cc; # returns None for all glyphs, instead of a boolean<br> if cc:<br> print g.name + "has counter-clockwise contour " + str(i);<br></div>
0 -
-
@Adam Jagosz
import fontlab as fl for glyph in (fl.flGlyph(glyph) for glyph in fl.CurrentFont().glyphs): if glyph.activeLayer.getContours(): print( "{}: {}".format( glyph.name, [ contour.clockwise for contour in glyph.activeLayer.getContours() ], ) )
2 -
Contributors to the FontBakery project are developing a set of checks for variable fonts. You are welcome to contribute ideas or code!
GitHub.com/googlefonts/FontBakery0
Categories
- All Categories
- 46 Introductions
- 3.8K Typeface Design
- 476 Type Design Critiques
- 555 Type Design Software
- 1.1K Type Design Technique & Theory
- 640 Type Business
- 831 Font Technology
- 29 Punchcutting
- 508 Typography
- 120 Type Education
- 313 Type History
- 75 Type Resources
- 109 Lettering and Calligraphy
- 30 Lettering Critiques
- 79 Lettering Technique & Theory
- 533 Announcements
- 86 Events
- 110 Job Postings
- 167 Type Releases
- 169 Miscellaneous News
- 274 About TypeDrawers
- 53 TypeDrawers Announcements
- 119 Suggestions and Bug Reports