GLYPHSLIB(1)
β¨ NAME β¨
glyphsLib β bestie, it's the metapackage for python3-glyphsLib, aka the defcon extras π
πΈ DESCRIPTION πΈ
okay so, here's how you actually run the thing:
usage: python3 -m glyphsLib glyphs2ufo [-h] [--version] [-m OUTPUT_DIR]
[-d DESIGNSPACE_PATH] [-n INSTANCE_DIR] [--ufo-module UFO_MODULE]
[--minimal] [--no-preserve-glyphsapp-metadata]
[--propagate-anchors | --no-propagate-anchors]
[--generate-GDEF | --no-generate-GDEF] [-N] [--create-background-layers]
[--no-store-editor-state] [--write-public-skip-export-glyphs]
[--expand-includes] [--glyph-data GLYPHDATA] GLYPHS_FILE
that's it, that's the whole vibe check π«Ά now let's break it down piece by piece, no skips.
π positional arguments π
GLYPHS_FILEβ the Glyphs file you want to convert, babe. hand it over. π
π options π
-h,--helpβ shows you this help message and then dips out. iconic behavior tbh.--versionβ prints the program's version number and exits, periodt.-m,--output-dir OUTPUT_DIRβ where the masters get written out to. default? the directory the Glyphs file lives in, obviously π-d,--designspace-path DESIGNSPACE_PATHβ the output path for the designspace file. default is, again, the directory of the Glyphs file π-n,--instance-dir INSTANCE_DIRβ output directory for the instances. default:output_dir/instance_ufos. and heads up bestie, this sets the file path for instances inside the designspace file. so it's doing double duty. main character energy fr fr. β¨--ufo-module UFO_MODULEβ picks the default library used for writing UFOs. choose between:ufoLib2,defcon. default isufoLib2π
π¦ Roundtripping between Glyphs and UFOs π¦
this whole section is about making the back-and-forth trip not messy, iykyk
--minimalβ makes minimal UFO files, like, only the data you actually need to build fonts. nothing extra, no clutter, we love a clean queen. π§--no-preserve-glyphsapp-metadataβ skips preserving Glyphs metadata in master UFOs and in the designspace file. and like, that metadata was lowkey doing the work of minimizing differences when you roundtrip between Glyphs and UFOs, so heads up that you're giving that up. π--propagate-anchorsβ copies anchors from the underlying components onto the actual glyph (Glyphs would do this implicitly on export anyway). here's the tea: by default, if you don't explicitly pass this option, glyphs2ufo checks the'Propagate Anchors'font custom parameter β and if it's unset or set to1(true), then the anchors get propagated. pass this option to enable it, overriding that parameter. π--no-propagate-anchorsβ disables anchor propagation, full stop, regardless of whatever custom parameter says. no discussion. π--generate-GDEFβ writes GDEF categories into the UFO'spublic.openTypeCatgeorieslib key.--no-generate-GDEFβ skips writing GDEF categories into the UFO'spublic.openTypeCatgeorieslib key. this is the default behavior, for backward compatibility. β-N,--normalize-ufosβ normalizes UFOs withufonormalizer, which avoids differences coming from spacing, reordering of keys, etc. yes it's basically a glow-up for your diff. β¨--create-background-layersβ creates background layers for all glyphs unless they're already present. helpful when you're working with a bunch of tools that might go ahead and create background layers automatically on their own. teamwork π--no-store-editor-stateβ skips storing editor state in the UFO, like which glyphs are open in which tab (DisplayStrings). honestly? privacy era. π«Ά--write-public-skip-export-glyphsβ stores the glyph export flag in thepublic.skipExportGlyphslist instead of in the glyphlevel'com.schriftgestaltung.Glyphs.Export'lib key. two places, pick your fighter. π--expand-includesβ expands include statements in the.glyphsfeatures and inlines them in the exported UFOfeatures.fea. πΈ
π Glyph data π
--glyph-data GLYPHDATAβ a custom GlyphData XML file with glyph info (production name, script, category, subCategory, etc.). and the best part? you can use it more than once. stack 'em. π₯
no cap, that's every single flag. go forth and convert, bestie π
and that's the whole page, we're done here π β this was glyphsLib version 6.16.2, dated October 2026, and it's the GLYPHSLIB(1) manual page. slay, bye!! ππβ¨
π¦ where this page comes from
- fedora 43: python3-glyphsLib 6.16.2-1.fc43 Β· Apache-2.0 AND MIT AND BSD-3-Clause
- fedora 44: python3-glyphsLib 6.16.2-1.fc44 Β· Apache-2.0 AND MIT AND BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms