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

Only decompose glyphs with reflected components #171

Closed
wants to merge 2 commits into from

Conversation

thundernixon
Copy link
Contributor

As far as I can tell in my tests so far, we can dramatically reduce font filesize by restricting our criteria for glyphs that must be decomposed for effective interpolation along the slant axis.

This PR contains edits to the fontbuild script to reduce the number of glyphs decomposed to only those that are critical.

This closes #169, which contains details of filesize savings and results suggesting that this PR introduces no regressions. However, to state the obvious, please test that I haven't missed anything here, @rsms.

rsms added a commit that referenced this pull request Jul 18, 2019
Instead of decomposing a component if any scaling is happening, only decompose a component if xScale < 0 or yScale < 0 (that is, if it is mirrored on the x or y axis). Removes yAxisIsNonTrivial which was set for all italic instances and would cause all composed glyphs to be decomposed.

Closes #169
@rsms rsms closed this Jul 18, 2019
@rsms
Copy link
Owner

rsms commented Jul 18, 2019

Merged — thank you so much!

@thundernixon
Copy link
Contributor Author

Nice, I'm pretty stoked this worked! Thanks for helping me find an issue in the first draft.

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.

accented glyphs are not composites
2 participants