B4J Question Is it possible to find the size of the system font?

MikeH

Well-Known Member
Licensed User
Longtime User
Is it possible to find the size of the system font?

When using a menu bar, if the font size is not the same as the system font size, there is a "jump" as reported here





Thanks in advance
 

William Lancee

Well-Known Member
Licensed User
Longtime User
The following yields 12. And indeed if you make that the font size of the MenuBar (in designer), there is no jumping.
However, the font is quite small.

B4X:
    Dim lbl As Label
    lbl.Initialize("")
    Dim lblx As B4XView = lbl
    Log(lblx.TextSize)
 
Upvote 0

MikeH

Well-Known Member
Licensed User
Longtime User
Thanks William, I'm trying to change the menu text size in code. I'd like to set it according to the system font size to avoid that "jump"
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…