How to get textWidth and textHeight with MaxGui?

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

Dear all,

I need to get textWidth and textHeight for a text based on a specific font, loaded using "LoadGuiFont()".

How can I do it?

I need this value since I want to create a library to automatically manage gadget position, based on the space used by a component.

Thank you!