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

use the PangoLayout to get baseline #1038

Merged
merged 1 commit into from Nov 20, 2017
Merged

Conversation

chearon
Copy link
Collaborator

@chearon chearon commented Nov 16, 2017

I believe this fixes #1037, I wasn't able to reproduce it on Linux but the baselines all seem fine at different rotations/scales for me.

I need to fix the measureText tests too, the implementation is summing ink and logical rects so something is wrong there.

Instead of getting it via the PangoContext, which seems to be buggy

Fixes Automattic#1037
@chearon
Copy link
Collaborator Author

chearon commented Nov 16, 2017

Tests passing now. macOS users will notice that the baseline now matches the browser. Needs a Windows check (paging @zbjornson)

Copy link
Collaborator

@zbjornson zbjornson left a comment

Choose a reason for hiding this comment

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

Great. Every visual test looks good on Windows.

Also makes #1004 irrelevant by fixing the new test that I left failing in #985 (comment).

@LinusU
Copy link
Collaborator

LinusU commented Nov 20, 2017

Awesome!

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.

drawText location incorrect on scaled Canvas (CentOS 7 and Ubuntu 16)
3 participants