The width of a string in pixels

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

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.

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