Search Unity

Word-Wrapped Text Overlaps Itself

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

  1. Kagedtiger

    Kagedtiger

    Joined:
    Sep 27, 2010
    Posts:
    76
    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.)


    $FontOverlap.png
     
  2. dkozar

    dkozar

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

    Did you check the font importer?