string_width

  1. Michael Hart

    SOLVED 3 or 4 strings to fit in specific area

    i have strings that should fit in an area from 210 to 786 . i would like to have 3 or 4 strings to scale to fit in this area. the variables are called guest1, guest2, guest3 and guest4 all of these variables vary in string_width how can i make these fit using draw_text_transformed?
  2. Michael Stearns

    GML Solved - String Width but ignoring line breaks

    Hello! I've got a text box that gradually fills with text, typewriter-style. I wanted to draw a little "cursor" at the end of the string being displayed, but I seem to be having some trouble. The problem is that string_width (and string_width_ext) does not seem to actually return the line...
  3. T

    Need help with using string_width(text) method

    Hi, I am working on building an in-game textbox that requires the use of the string_width method. I ran into a problem: Let's say I have a string called "text" text = "This is my string"; When I do: var size = string_width(text) in the Step Event, I got size = 400; (this is just a random...
  4. Silversea

    Legacy GM "string_width" calculating wrong value?

    Perhaps someone with more experience could explain what is happening here, and how to correct it. I'm assuming it has something to do with spacing of the characters in the font not matching with the actual draw length. The actual draw width of this text is 153 pixels, but the game says it is...
Top