I know it isn't wanted to re-ask the same question, but I do... Please for give me.
Can someone put me in the right direction by calculating StringWidth.
I mean the lenght in pixels, units or some value from any string in a specified font.
Maybe I can draw a string on a blanc picture and search for last pixel from left to right. But I think there will be much smarter ways.
(It took me 7 years to get this one right.) XUI v1.60 includes a new method named B4XCanvas.MeasureText. This method accurately measures single line strings. It returns a B4XRect object with the width and height of the measured string. The Top field returns the highest point relative to...