How to get textWidth and textHeight with MaxGui?

BlitzMax Forums/BlitzMax GUI Programming/How to get textWidth and textHeight with MaxGui?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Thank you, but that one is font size.
My problem is calculate gadget width (e.g.: Label) based on the text contained inside.

Example:

myLabel = "This is a test"

Now I want to calculate label width based on the pixels used from such text (using a specific font).

Thank you!