DrawText Alignment

Home Forums Monkey 2 Programming Help DrawText Alignment

This topic contains 3 replies, has 2 voices, and was last updated by  TomToad 2 months, 1 week ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #10464

    Voidwalker
    Participant

    Hi,

    is there a way to align the text (LEFT, CENTER, RIGHT) with DrawText? If not is there a way to get the pixel size of the text to do it by myself?

    Thanks!

    #10465

    TomToad
    Participant
    #10466

    Voidwalker
    Participant

    Thanks! So Font.TextWidth is it and handles work as well. Very nice and thank you for that example!

    #10467

    TomToad
    Participant

    Didn’t even realize just how flexible using handles on text is until I started thinking about this more. Put text right where you want it without messing with too much math.

    Edit: Thinking this would be good in the Code Library.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.