Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy/move fontmake.instantiator module to ufo2ft.instantiator #825

Merged
merged 9 commits into from
Mar 15, 2024

Conversation

anthrotype
Copy link
Member

I need to be able to generate instances of glyphs on the fly to be able to correctly decomposing composite glyphs that are defined at different locations than some of their component glyphs (context googlefonts/glyphsLib#954).

We already have code inside fontmake to generate instance UFOs (using fontMath and fontTools.varLib). So I asked its author Nikolaus @madig if we can copy it over here in ufo2ft and he said it's fine as long as it continues to work unchanged.

So this PR simply copies the fontmake.instantiator module as it currently is (as of Thursday 14 March 2024, at commit googlefonts/fontmake@0971eb0) along with its tests.

I also modified it slightly in order to be able to run it on either ufoLib2 or defcon fonts.

In follow up PRs I will use this to implement the decomposition of interpolatable composite glyphs.

@anthrotype anthrotype force-pushed the fm-instantiator branch 3 times, most recently from cb6c188 to 6c19ed3 Compare March 14, 2024 15:11
@anthrotype anthrotype requested a review from madig March 14, 2024 15:11
@anthrotype anthrotype force-pushed the fm-instantiator branch 2 times, most recently from 3dd47cb to 1af2b87 Compare March 14, 2024 16:48
@anthrotype anthrotype force-pushed the fm-instantiator branch 2 times, most recently from b9211dc to 9301436 Compare March 14, 2024 17:07
@anthrotype anthrotype merged commit aede63e into main Mar 15, 2024
9 checks passed
@khaledhosny khaledhosny deleted the fm-instantiator branch March 23, 2024 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants