setting font alignment

BlitzMax Forums/BlitzMax Beginners Area/setting font alignment

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 is no built in way to align strings. Try this method from my BlitzMax Framework:

Function ccDrawTextCentred(text$,x#,y#)
Local w# = TextWidth(text)
DrawText(text,x-(w/2),y)
End Function