This is for now a work in progress proof of concept.
Initial goals:
- Focus on outlines and (variable) components
- Input: Fontra "backend" objects (core and rcjk)
- Initially
glyf-1
-only - Variable Components
- Cubics outlines in glyf
Future goals:
- Output regular components when possible
- Add option to convert cubic curves to quadratics
- Add option to convert quadratic curves to cubics
- Add option to flatten variable components
- Add option to build a backwards compatible
glyf-0
table
-
Clone this repository
-
cd
into the cloned repository folder -
Create and activate a virtual environment with Python 3.10 or up
-
Install dependencies:
pip install -r requirements.txt
-
Install this package:
pip install -e .
$ fontra-compile source.designspace out.ttf
$ fontra-compile source.designspace out.ttf --glyph-names A,B,C
$ fontra-compile source.rcjk out.ttf
$ fontra-compile source.otf out.ttf
$ fontra-compile source.ttf out.ttf