Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

Word-Wrapped Text Overlaps Itself

Discussion in 'Immediate Mode GUI (IMGUI)' started by Kagedtiger, Oct 17, 2013.

  1. Kagedtiger


    Sep 27, 2010
    Hey All,

    I have a font that is not rendering properly with word wrap. When it starts a new wrapped line it overlays the new line onto the bottom half of the previous one (ie there is not enough space between lines). I'd like to adjust the lineHeight variable for the GUIStyle that I'm using, but the documentation says it's read-only. Is there a way to adjust the spacing between lines within the GUIStyle editor interface? And is this likely a problem with my GUIStyle settings, or with the font itself? (It looks like the lineHeight for the font is 0 or something.)

    Here's an image of the problem:
    (I'm using 3.X Pro, and the text box from the image is the entire height of that green box.)

  2. dkozar


    Nov 30, 2009
    This is strange. Btw there's no line spacing option with GUIStyle, but it usually renders OK.

    Did you check the font importer?