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

[Snippets] add snippet that shows how to decompose glyphs in a TTF #2030

Merged
merged 3 commits into from
Jul 23, 2020

Conversation

justvanrossum
Copy link
Collaborator

Snippet based on #2029 (comment)

Copy link
Member

@anthrotype anthrotype left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm. Curious why would one want to decompose a TTF in the first place? Or maybe it's just to show how the decomposing pen works

@anthrotype anthrotype merged commit 290ee78 into fonttools:master Jul 23, 2020
@anthrotype
Copy link
Member

i'm going to add code to remove overlaps using skia-pathops to this snippet

@arrowtype
Copy link

Curious why would one want to decompose a TTF in the first place? Or maybe it's just to show how the decomposing pen works

Partly, it’s a way to hack “code ligatures” to make their positioning work in strict monospace-only environments (arrowtype/recursive#354). I think I could alternatively set their transformation positions different, instead. But, I also ended up being very curious to understand how a decomposing pen might work in a TTF, as I’m still connecting the dots for how to manipulate fonts in various formats. Thanks so much for the help here!

@arrowtype
Copy link

This works beautifully in my script. Thanks again!

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

3 participants