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

implied oncurve points for interpolatable glyphs #3146

Merged
merged 5 commits into from Jun 1, 2023

Conversation

anthrotype
Copy link
Member

we have a drop_implied_oncurves function inside ttGlyphPen, but that being a pen only works for a single glyph.

Thus I modified this to work on one or more (interpolatable) glyphs and to only prune oncurve points that are impliable for all of the input glyphs, such that the modified glyphs maintain interpolability.

I also moved it to the glyf table module. I'd like to use this in ufo2ft to massage the glyphs of master TTFs before it calls varLib.build.

fontc does a similarly eager pruning of oncurve points and I'd like to have this done (optionally) in fontmake-py as well.

@anthrotype anthrotype force-pushed the drop-implied-oncurves-interpolatable branch from 3b80834 to a039e1d Compare June 1, 2023 18:27
@anthrotype anthrotype requested a review from behdad June 1, 2023 18:28
@behdad
Copy link
Member

behdad commented Jun 1, 2023

LGTM. Thanks!

@anthrotype anthrotype merged commit 84cebca into main Jun 1, 2023
10 checks passed
@anthrotype anthrotype deleted the drop-implied-oncurves-interpolatable branch June 1, 2023 19:55
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.

None yet

2 participants