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

Add remove overlaps toggle for static instance builds #46

Open
chrissimpkins opened this issue May 20, 2021 · 1 comment
Open

Add remove overlaps toggle for static instance builds #46

chrissimpkins opened this issue May 20, 2021 · 1 comment

Comments

@chrissimpkins
Copy link
Member

chrissimpkins commented May 20, 2021

We do not currently remove overlaps in builds with all axes defined at a static instance locations. We use the default approach defined in fontTools.varLib.instancer.instantiateVariableFont. This keeps overlaps and sets the OVERLAP_SIMPLE & OVERLAP_COMPOUND bits on glyphs in the glyf table. This can lead to platform-specific issues with contour overlap rasterization where pixel dropout is seen in the area of the overlap.

It would be helpful to include the option to remove overlaps when you build static instances. We will keep the current approach as the default because the removal of overlaps can lead to issues in fonts with instruction sets as the points/order change when overlaps are removed.

Perhaps as a selectable menu option, in an options panel, or in a checkbox on the UI? Will look into this.

@chrissimpkins
Copy link
Member Author

chrissimpkins commented May 20, 2021

Implementation details:

fontTools source

Will require a new skia-pathops lib dependency

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant