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 a FontTransform to allow arbitrary transformations on glyphs. #76

Merged
merged 1 commit into from Jun 10, 2019

Conversation

@jrmuizel
Copy link
Collaborator

jrmuizel commented Jun 7, 2019

Fixes #34

@pcwalton
Copy link
Collaborator

pcwalton commented Jun 8, 2019

What do you think about replacing size with an affine transform instead?

@pcwalton
Copy link
Collaborator

pcwalton commented Jun 8, 2019

Err, I mean a 2x2 transform.

@pcwalton
Copy link
Collaborator

pcwalton commented Jun 8, 2019

Also I'm confused as to why font size needs to be different from scale…

@jrmuizel
Copy link
Collaborator Author

jrmuizel commented Jun 8, 2019

I'm not certain why, but all of the underlying system apis keep font size separate from the transform. I think it is probably wisest to just follow this convention.

@pcwalton
Copy link
Collaborator

pcwalton commented Jun 8, 2019

Yeah, OK. I agree with wanting to follow the convention. @raphlinus Maybe you can shed some light on this?

@pcwalton
Copy link
Collaborator

pcwalton commented Jun 10, 2019

This looks good when rebased, FWIW.

@jrmuizel jrmuizel force-pushed the jrmuizel:font-transform branch from c8d8928 to eb8e382 Jun 10, 2019
@jrmuizel
Copy link
Collaborator Author

jrmuizel commented Jun 10, 2019

Rebased. The test failure seems to be an intermittent.

@pcwalton pcwalton merged commit 9b2cde1 into servo:master Jun 10, 2019
1 check failed
1 check failed
continuous-integration/travis-ci/pr The Travis CI build failed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

2 participants
You can’t perform that action at this time.