googlefonts / googlefonts/gftools

Supporting `fontc` as an experimental alternative compiler

Open
#1,045 5 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
283
Forks
73
Avg merge
21h 25m
Merged PRs (30d)
8

Description

I would like to start testing using `fontc` in place of `fontmake` in the gftools builder pipeline, and I'm hoping to discuss how best to do this. Ideally this work would be isolated and non-invasive enough that it could happen in this repo, instead of in a fork.

The main requirement for this work would be some way to pass a flag that would opt us into `fontc` mode. I imagine that this would involve adding some new 'Operations' that can be run in place of the current `BuildOTF` and `BuildVariable` classes, and which would be backed by `fontc`. (An environment variable could be used to pass a path to the `fontc` executable.)

When the user passed the `--experimental-fontc` (or whatever) flag, we would then use the alternative operations instead of the default ones; I'm not sure how best to plumb this through, but I could imagine possibly modifying the `known_operations` or else adding an `operation_overrides` dict or something like that; I imagine this project's maintainers might have a better sense of how best to do this.

Does this make approximate sense? Is there anything else I'm missing?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.