How to get width of text?

BlitzMax Forums/BlitzMax Programming/How to get width of text?

orgos(Posted 2009) [#1]
Hello.

Here again with other rare question :-D

How i can get the size of text in pixels using TImageFont.

For example I load an imageFont of 12 in font size, and i have the text "testing my game", so i want to get the representative size in pixel of my text using the loaded ImageFont?

Another question related, How i can get the size in pixel of some character?

Really thanks.

Urra for Blitzmax.


N(Posted 2009) [#2]
Tried TextWidth? O_o


orgos(Posted 2009) [#3]
Thanks Nilum, that's solve my problem.