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

Properly support the offset in dwrite and freetype loaders. #75

Merged
merged 2 commits into from Jun 7, 2019

Conversation

@jrmuizel
Copy link
Collaborator

jrmuizel commented Jun 7, 2019

This change makes the positioning of in the canvas consistent between the
loaders on all platforms. It adopts the convention of having the origin at the
top left with +y going down. Glyphs with their baseline at the specified
offset. This follows the convention of cairo and HTML canvas.

The version is bumped because of this behaviour change.

This also moves the row increments below the tests so that we use the
same row for the next part of the shape.
This change makes the positioning of in the canvas consistent between the
loaders on all platforms. It adopts the convention of having the origin at the
top left with +y going down. Glyphs with their baseline at the specified
offset. This follows the convention of cairo and HTML canvas.

The version is bumped because of this behaviour change.
@jrmuizel jrmuizel force-pushed the jrmuizel:correct-offset branch from 428b197 to d9029ae Jun 7, 2019
@pcwalton pcwalton merged commit 9125b54 into servo:master Jun 7, 2019
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
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.

None yet

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