I wanna align Time str and seconds based on the top line. What is the best way? Now I am using
I wanna align Time str and seconds based on the top line. What is the best way? Now I am using
This is tricky if you use FONT_NUMBER_* fonts, as based on the device and font, there can be varying amount of white space above and below the digit. For example, on the fenix5, there is no white space
(the lines show the height you get from getFontHeigh()/getTextDemensions(). The small number indicates what that is.)
Now here is the fenix6s. You see white space there.
What that means is there could be "turning" involved on different devices, as the amount of white space also varies based on which font. Smaller fonts, less white space. The difference in the amount of white space between the different sized fonts on the same device isn't huge, but noticeable
Actually it does, it's just that it's not to the top of the digit, but the top of the font. So it follows how things worked since CIQ began.
Dealing with different fonts and differences between devices has been a complaint since there were only a few device, and now there are 100+
Ah but which glyph reaches that top point indicated by fontAscent? There must be at least one that dies so, for it to be the fontAscent value. Appreciated some digits may not reach the top, but at least one should. Font ascent is not meant to just point to top of white space.