glyphs2ufo - Man Page
Metapackage for python3-glyphsLib: defcon extras
Description
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
positional arguments
- GLYPHS_FILE
 Glyphs file to convert.
options
- -h, --help
 show this help message and exit
- --version
 show program's version number and exit
- -m, --output-dir OUTPUT_DIR
 Output directory of masters. (default: directory of Glyphs file)
- -d, --designspace-path DESIGNSPACE_PATH
 Output path of designspace file. (default: directory of Glyphs file)
- -n, --instance-dir INSTANCE_DIR
 Output directory of instances. (default: output_dir/instance_ufos). This sets the file path for instances inside the designspace file.
- --ufo-module UFO_MODULE
 Select the default library for writing UFOs. Choose between: ufoLib2, defcon (default: ufoLib2)
Roundtripping between Glyphs and UFOs
- --minimal
 Create minimal UFO files with only data needed for building fonts.
- --no-preserve-glyphsapp-metadata
 Skip preserving Glyphs metadata in master UFOs and designspace file, which would be used to minimize differences when roundtripping between Glyphs and UFOs.
- --propagate-anchors
 Copy anchors from underlying components to actual glyph (Glyphs would do this implicitly upon export). By default, if this option is not explicitly used, glyphs2ufo checks the 'Propagate Anchors' font custom parameter and if unset or set to 1 (true) then the anchors get propagated. Pass this option to enable this overriding the parameter.
- --no-propagate-anchors
 Disable anchor propagation regardless of any custom parameter.
- --generate-GDEF
 Write GDEF categories into the UFO's `public.openTypeCatgeories` lib key.
- --no-generate-GDEF
 Skip writing GDEF categories into the UFO's `public.openTypeCatgeories` lib key (default behavior, for backward compatibility).
- -N, ā--normalize-ufos
 Normalize UFOs with ufonormalizer, which avoids differences due to spacing, reordering of keys, etc.
- --create-background-layers
 Create background layers for all glyphs unless present, this can help in a workflow with multiple tools that may create background layers automatically.
- --no-store-editor-state
 Skip storing editor state in the UFO, like which glyphs are open in which tab (DisplayStrings).
- --write-public-skip-export-glyphs
 Store the glyph export flag in the `public.skipExportGlyphs` list instead of the glyphlevel 'com.schriftgestaltung.Glyphs.Export' lib key.
- --expand-includes
 Expand include statements in the .glyphs features and inline them in the exported UFO features.fea.
Glyph data
- --glyph-data GLYPHDATA
 Custom GlyphData XML file with glyph info (production name, script, category, subCategory, etc.). Can be used more than once.