8000 freetypePen: fit to content when rotated/skewed by takaakifuji · Pull Request #2517 · fonttools/fonttools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

freetypePen: fit to content when rotated/skewed #2517

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

Merged
merged 6 commits into from
Jan 31, 2022

Conversation

takaakifuji
Copy link
Contributor

I realised that I didn't give enough thought to the effect of rotate/skew transforms in the former PR (#2494). This PR will fix and clarify the behaviour when width or height is omitted, which is the use case I failed to cover. Also contains some minor fixes.

The pen is designed to determine the bitmap size when omitted, which
helps users to see an image somehow even when they have no idea how the
arguments should be passed. And I realised that I didn't give enough
thought to rotate/skew transforms in former PRs. This commit fixes the
calculation of the bbox after transformation. Also tries to clear up how
the autosizing options work in the docstring.

Some minor fixes will follow.
@anthrotype anthrotype merged commit d1eca10 into fonttools:main Jan 31, 2022
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.

2 participants
0