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

Vertical align with Created TTF Font #2798

Closed
Bitxenio opened this issue May 12, 2019 · 1 comment
Closed

Vertical align with Created TTF Font #2798

Bitxenio opened this issue May 12, 2019 · 1 comment
Assignees
Milestone

Comments

@Bitxenio
Copy link

Bitxenio commented May 12, 2019

On Android (in simulator or in IOS work fine) when used on a Label a created TTF Font (from a file), do not vertical align the icon with the font, the font are on top. When I use a native Font works fine.

My form code to test case, as you can see on ScreenShots, on IOS and Simulador the Valign is center on the Label and on the Picker, but on Android is align on Top, this success in all components

TestCase:
https://www.dropbox.com/s/msa4ulhc7ft9se5/testCase.zip?dl=0

See in StackOverflow
https://stackoverflow.com/questions/56091606/vertical-align-with-created-ttf-font

@codenameone codenameone added this to the Version 7.0 milestone May 13, 2019
shannah added a commit that referenced this issue May 13, 2019
@Bitxenio
Copy link
Author

I attached the files.

simulador
android
ios

@shannah shannah closed this as completed Jul 16, 2019
shannah added a commit that referenced this issue Aug 8, 2019
…bottom. Did this by changing the font height calculation to be the font's bottom minus top value, rather than its font height. The bottom minus top value is yields the maximum height of a font, whereas the font height is only the recommended height. Usually these are equal, but some fonts seem to have different values here. The problem exhibited itself most clearly with lower case 'g' and 'y'.

Also updated the sample for this issue.
This is related to #2798
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