Using FontParts & Python to edit a UFO font source with only code

Опубликовано: 15 Июнь 2026
на канале: ArrowType
649
23

The FontParts API is super helpful for manipulating UFO font sources entirely from code, without needing to manually edit things in a font editor. This allows you to create font edits that can be repeatable, e.g. for things you might want to do in a font build that you’ll run many times.

It can be a little confusing how to use FontParts, though, so I created a little “stream” of me writing a script with it.

This script will add margin to the left and right sides of all glyphs in a UFO, and account for several of the little edge cases and gotchas that arise when programmatically adding extra spacing to glyphs.

Ultimately, this video shows me adding a "Tracking" axis to a variable font, and using code to automate the process.