A set of flexible objects for representing UFO data.
Defcon is a set of UFO based objects optimized for use in font editing applications. The objects are built to be lightweight, fast and flexible. The objects are very bare-bones and they are not meant to be end-all, be-all objects. Rather, they are meant to provide base functionality so that you can focus on your application’s behavior, not object observing or maintaining cached data. Defcon implements UFO3 as described by the UFO font format. If needed, the ufo2-deprecated branch has the older, UFO2, version of Defcon.
pip install --upgrade defcon
To install with the fontPens package —used for Glyph.correctDirection() and Contour.contourInside()— do:
pip install --upgrade defcon[pens]
To optionally install defcon with support for lxml, a faster XML reader and writer library, you can do:
pip install --upgrade defcon[lxml]
You can separate multiple extras using a comma: defcon[pens,lxml].
Documentation for Defcon lives at defcon.robotools.dev.
This package is distributed under the MIT license. See the license. Defcon is built in Python. Parts of RoboFab use fontTools, an OpenSource font toolkit started by Just van Rossum. Parts of Defcon implement the Property List file format in XML, copyright Apple Computer. Parts of Defcon implement tables and names from PostScript and the OpenType FDK, copyright Adobe.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size defcon-0.8.1-py3-none-any.whl (231.1 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size defcon-0.8.1.zip (518.7 kB)||File type Source||Python version None||Upload date||Hashes View|