KZero Active Member Licensed User Longtime User Mar 21, 2020 #1 B4X: Label1.Width=cnv.MeasureStringWidth(Label1.Text,Label1.Typeface,Label1.TextSize) if the layout set to "AutoScaleAll" the result is accurate but when I disable it, it doesn't measure the string right am I missing something?
B4X: Label1.Width=cnv.MeasureStringWidth(Label1.Text,Label1.Typeface,Label1.TextSize) if the layout set to "AutoScaleAll" the result is accurate but when I disable it, it doesn't measure the string right am I missing something?
Erel B4X founder Staff member Licensed User Longtime User Mar 22, 2020 #2 AutoScaleAll slightly changes the font size. This is all that it does. Upvote 0
KZero Active Member Licensed User Longtime User Mar 22, 2020 #3 Erel said: AutoScaleAll slightly changes the font size. This is all that it does. Click to expand... worked well on another device does B4XCanvas use the same system API for measurement? Upvote 0
Erel said: AutoScaleAll slightly changes the font size. This is all that it does. Click to expand... worked well on another device does B4XCanvas use the same system API for measurement?
Erel B4X founder Staff member Licensed User Longtime User Mar 22, 2020 #4 B4XCanvas.MeasureText is more accurate. Upvote 0