Generating static instances from variable font file
Roel Nieskens
Posts: 188
Are there any tools out there that can generate a static version based of an existing variable font (an .otf or .ttf)? Something like this:
Where this would produce a non-variable, static font with axes "wgth" set to 150, and "abcd" to 876?
$ staticize --wgth=150 --abcd=876 varfont.ttf
Where this would produce a non-variable, static font with axes "wgth" set to 150, and "abcd" to 876?
0
Comments
-
-
Just a small caveat: varLib.mutator doesn't hande GPOS/GSUB tables (yet). Or does it? Haven't looked at it for a while.0
-
I don't think it does. Roel or Jens, would you make a fonttools github issue? I think fontTools.varLib.mutator should be the go-to tool for this task.
0 -
Nice, fontTools.varLib.mutator seems to do as advertised:
➤ python3 mutator.py mutator-sans-variable.ttf wght=555 wdth=555 Location: {'wght': 555.0, 'wdth': 555.0} Loading variable font Normalized location: {'wdth': 0.55499267578125, 'wght': 0.55499267578125} Mutating glyf/gvar tables Mutating MVAR table Mutating GDEF/GPOS/GSUB tables Building interpolated tables Removing variable tables
It says it's mutating the GPOS/GSUB tables — so it's been fixed in the mean time perhaps @Just van Rossum?
@Simon Cozens Have you stopped development on your implementation?
0 -
Weird thing: I did a quick test for GPOS, and the kern feature values were interpolated, but the single positioning values (cpsp) were not.1
Categories
- All Categories
- 43 Introductions
- 3.7K Typeface Design
- 803 Font Technology
- 1K Technique and Theory
- 622 Type Business
- 444 Type Design Critiques
- 542 Type Design Software
- 30 Punchcutting
- 136 Lettering and Calligraphy
- 83 Technique and Theory
- 53 Lettering Critiques
- 485 Typography
- 303 History of Typography
- 114 Education
- 68 Resources
- 499 Announcements
- 80 Events
- 105 Job Postings
- 148 Type Releases
- 165 Miscellaneous News
- 270 About TypeDrawers
- 53 TypeDrawers Announcements
- 116 Suggestions and Bug Reports