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

Transform advance width (and height) when scaling #515

Merged
merged 3 commits into from
Aug 3, 2021

Conversation

simoncozens
Copy link
Contributor

Fixes #490

anthrotype added a commit to fonttools/fonttools that referenced this pull request Aug 3, 2021
Adds a transformVector and transformVectors methods to the Transform class. Useful for things like googlefonts/ufo2ft#515
@simoncozens
Copy link
Contributor Author

That'll work when fontTools is next released...

@@ -98,6 +98,7 @@ def filter(self, glyph):
if matrix == Identity or not (glyph or glyph.components or glyph.anchors):
return False # nothing to do

justscale = self.context.justscale
Copy link
Member

Choose a reason for hiding this comment

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

unused?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, that should go...

@anthrotype
Copy link
Member

i'll update fonttools after the merge, thanks

@anthrotype anthrotype merged commit 3914aba into googlefonts:main Aug 3, 2021
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.

Should ufo2ft.filters.transformations change the advance width?
3 participants