robofab.ufoLib | index /code/projects/robofab/Lib/robofab/ufoLib.py |
"
A library for importing .ufo files and their descendants.
This library works with robofab objects. Using the magic of the
U.F.O., common attributes are exported to and read from .plist files.
It contains two very simple classes for reading and writing the
various components of the .ufo. Currently, the .ufo supports the
files detailed below. But, these files are not absolutely required.
If the a file is not included in the .ufo, it is implied that the data
of that file is empty.
FontName.ufo/
metainfo.plist # meta info about the .ufo bundle, most impartantly the
# format version number.
glyphs/
contents.plist # a plist mapping all glyph names to file names
a.glif # a glif file
...etc...
fontinfo.plist # font names, versions, copyright, dimentions, etc.
kerning.plist # kerning
lib.plist # user definable data
groups.plist # glyph group definitions
Modules | ||||||
|
Classes | ||||||||||||||||||
|
Functions | ||
|
Data | ||
FONTINFO_FILENAME = 'fontinfo.plist' GLYPHS_DIRNAME = 'glyphs' GROUPS_FILENAME = 'groups.plist' KERNING_FILENAME = 'kerning.plist' LIB_FILENAME = 'lib.plist' METAINFO_FILENAME = 'metainfo.plist' READ_MODE = 'r' WRITE_MODE = 'w' fontInfoAttrs = ['familyName', 'styleName', 'fullName', 'fontName', 'menuName', 'fontStyle', 'note', 'versionMajor', 'versionMinor', 'year', 'copyright', 'notice', 'trademark', 'license', 'licenseURL', 'createdBy', 'designer', 'designerURL', 'vendorURL', 'unitsPerEm', ...] |