Skip to content

googlefonts/fontra-compile

Repository files navigation

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

About

A Variable Font compiler for Fontra

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages