-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
20 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,19 @@ | ||
# ufoProcessor | ||
Python package based on the **designSpaceDocument** (now fontTools.designSpaceLib) specifically to process and generate UFO files. | ||
Python package based on the **designSpaceDocument** (now [fontTools.designspaceLib](https://github.com/fonttools/fonttools/tree/master/Lib/fontTools/designspaceLib)) specifically to process and generate UFO files. | ||
|
||
When the dust of the move has settled I'll make the remove `designSpaceDocument.py` and point to the current file at fontTools. In the mean time and for the sake of continuity (and keeping some things running) it is here. | ||
* Collect source materials | ||
* Provide Mutators for specific glyphs, font info, kerning so that other tools can generate partial instances. | ||
* Generate actual UFO instances in formats 2 and 3. | ||
* Round geometry as requested | ||
* Try to stay up to date with fontTools | ||
* | ||
|
||
## Usage | ||
The easiest way to use ufoProcessor is to call `build(designspacePath)` | ||
|
||
* documentPath: path to the designspace file. | ||
* outputUFOFormatVersion: integer, 2, 3. Format for generated UFOs. Note: can be different from source UFO format. | ||
* roundGeometry: bool, if the geometry needs to be rounded to whole integers. | ||
* processRules: bool, execute designspace rules as swaps. | ||
* logger: optional logger object. | ||
|