setrotate with drawtext

BlitzMax Forums/BlitzMax Beginners Area/setrotate with drawtext

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.

Panno, if you want to find the exact centre of your text string, use TextWidth & TextHeight:

Off the top of my head....

w = TextWidth("TESTY!")/2
h = TextHeight("TESTY!")/2

SetHandle w,h
SetRotation r
DrawText "TESTY!",320,240