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

[CFF2ToCFF] remove-overlaps #3512

Open
behdad opened this issue May 17, 2024 · 3 comments
Open

[CFF2ToCFF] remove-overlaps #3512

behdad opened this issue May 17, 2024 · 3 comments
Assignees

Comments

@behdad
Copy link
Member

behdad commented May 17, 2024

No description provided.

@behdad
Copy link
Member Author

behdad commented May 17, 2024

@khaledhosny Any chance you can do this?

@khaledhosny
Copy link
Collaborator

I can work on it. We have fontTools.ttLib.removeOverlaps but it does not support CFF table, so I’ll try to add it there and use it in the instancer (which already uses it to remove overlaps for glyf table).

@khaledhosny khaledhosny self-assigned this May 17, 2024
@ftCLI
Copy link

ftCLI commented May 18, 2024

If can be of any help, I’ve already adapted removeOverlaps to work with CFF.

https://github.com/ftCLI/FoundryTools-CLI-2/blob/0b1a21c50130160db4558e47058b8f07d3cf8be8/foundrytools_cli_2/lib/skia/skia_tools.py#L313

It also corrects contours direction and removes tiny paths (like AFDKO’s checkoutlinesufo) but you can easily strip those parts

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

No branches or pull requests

3 participants