Best way to un-nest nested TTF components?
Adam Jagosz
Posts: 689
fontbakery complains about nested components which cause problems in some ancient versions of macOS. What would be the smartest way to resolve this? (Other than manually changing the sources, e.g. changing the recipe for Alphatonos from "tonos_Alpha" to "tonos_A" etc.)
I tried this fontTools snippet https://github.com/fonttools/fonttools/issues/1506 but I don't think it worked.
Can tools like fontmake / gftools fix this automagically?
Flattening the entire FontLab source before exporting to UFO bumps the font size from 136 to 221 kB. I could re-detect composites but FontLab does a nasty job here reordering some contours and variable compatibility goes away.
Tagged:
0
Comments
-
It's not just ancient versions of MacOS - these often don't print properly on PostScript printers, and sometimes the positioning goes wrong in variable fonts.
I have a pull request to fontmake which adds a "-f" flag to flatten components, but it's not been merged yet. (Future readers who come upon this post via Google should try running "fontmake -f".) For now, add this to your UFO's lib.plist:<key>com.github.googlei18n.ufo2ft.filters</key> <array> <dict> <key>name</key> <string>flattenComponents</string> <key>pre</key> <integer>1</integer> </dict> </array>
For full details, please read the relevant issue.
1 -
0
Categories
- All Categories
- 46 Introductions
- 3.8K Typeface Design
- 480 Type Design Critiques
- 558 Type Design Software
- 1.1K Type Design Technique & Theory
- 647 Type Business
- 837 Font Technology
- 29 Punchcutting
- 513 Typography
- 119 Type Education
- 319 Type History
- 75 Type Resources
- 110 Lettering and Calligraphy
- 31 Lettering Critiques
- 79 Lettering Technique & Theory
- 540 Announcements
- 88 Events
- 112 Job Postings
- 168 Type Releases
- 171 Miscellaneous News
- 275 About TypeDrawers
- 53 TypeDrawers Announcements
- 120 Suggestions and Bug Reports