The width of a string in pixels

BlitzMax Forums/BlitzMax Programming/The width of a string in pixels

nawi(Posted 2005) [#1]
There was command in Blitz3d, called StringWidth()

This will return the size, in pixels, the width of the indicated string. This is useful for determining screen layout, scrolling of text, and more. This is calculated based on the size of the currently loaded font.


I need this function but I think there isint one in BlitzMax. And I have no idea how to write one.

I need this to center a text


tonyg(Posted 2005) [#2]
Is it textwidth?


nawi(Posted 2005) [#3]
Yes it is, thanks