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

Fix Ruler rendering issue. #212

Merged
merged 1 commit into from Jan 23, 2022
Merged

Conversation

jpobst
Copy link
Contributor

@jpobst jpobst commented Jan 22, 2022

Do you know what the intent behind these Gravity flags is? Using one of them is fine, but when using both of them it causes the values to be written as squares. (Win10)

This PR fixes this by removing the flags and moving the text into place, but it may not be the correct fix. 🤷‍♂️

ruler

@cameronwhite
Copy link
Member

I think this was for making the text have a vertical layout - here's how it looks on my Mac:
ruler

I'm okay with switching to rotated text though, if that makes it work on every platform :)

@cameronwhite cameronwhite merged commit 901b178 into PintaProject:master Jan 23, 2022
@cameronwhite
Copy link
Member

Looking at Inkscape's ruler widget (which was also ported to GTK3 to replace the built-in ruler from GTK2), they draw each digit separately to get vertical text rather than using the gravity controls. So, I think that would be the approach to take if we want to go back to having vertical rather than rotated text

@jpobst jpobst deleted the ruler branch January 23, 2022 20:15
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.

None yet

2 participants