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

Bloks does not use the same text boundary as the Redliner tool. Please use the same math as Redliner for calculating the text bounds since its bounds are correct. #16

Open
Jeremy-Knudsen opened this issue Sep 6, 2016 · 3 comments

Comments

@Jeremy-Knudsen
Copy link

No description provided.

@Jeremy-Knudsen Jeremy-Knudsen changed the title Bloks does not use the same text boundary as Redliner tool. Please use the same math as Redliner since it is uses the correct bounds I believe. Bloks does not use the same text boundary as the Redliner tool. Please use the same math as Redliner since it is uses the correct bounds I believe. Sep 6, 2016
@Jeremy-Knudsen Jeremy-Knudsen changed the title Bloks does not use the same text boundary as the Redliner tool. Please use the same math as Redliner since it is uses the correct bounds I believe. Bloks does not use the same text boundary as the Redliner tool. Please use the same math as Redliner for calculating the text bounds since it is uses the correct bounds I believe. Sep 6, 2016
@Jeremy-Knudsen Jeremy-Knudsen changed the title Bloks does not use the same text boundary as the Redliner tool. Please use the same math as Redliner for calculating the text bounds since it is uses the correct bounds I believe. Bloks does not use the same text boundary as the Redliner tool. Please use the same math as Redliner for calculating the text bounds since its bounds are correct. Sep 6, 2016
@Jeremy-Knudsen
Copy link
Author

If I set the text to be area text and then, in the area text options dialog, set "First Baseline" to "Legacy" and check "Auto Size" then I can get better vertical alignment results.

@Jeremy-Knudsen
Copy link
Author

If I know the type size is not going to change size (e.g. it always will be 15pt) then I can change the text to area text and then, in the area text options dialog set "First Baseline" to "Fixed" and adjust the pixel value to a value that aligns the text to what I need it to (usually 18px for Segoe UI Regular 15pt)

@WestonThayer
Copy link
Owner

Yep, area text has a bunch of options that are helpful for configuring the size. I'll have to think about this one a bit. It's hard because that Redliner tool is to match XAML's specific text rendering engine. Text does not have the same box height on different platforms (Android, iOS). We'd have to create different rendering modes or something for text... it gets sticky. Do you happen to know if that Redliner tool matches browsers?

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

No branches or pull requests

2 participants