Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 1.44 KB

README.md

File metadata and controls

40 lines (28 loc) · 1.44 KB

fontra-compile — A Variable Font outline compiler for Fontra

This is for now a work in progress proof of concept.

Initial goals:

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

Install

  • 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 .

Usage

$ 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