Search Unity

Different fonts make the newlines appear in TextField

Discussion in 'Immediate Mode GUI (IMGUI)' started by nafonso, Feb 26, 2008.

  1. nafonso

    nafonso

    Joined:
    Aug 10, 2006
    Posts:
    377
    Hi,

    Why does this happen? If I use the default Font for TextFields, if a user hits enter, nothing happens. But if I use a different Font (e.g. Gill Sans), if the user hits enter on a TextField, it enlarges the textfield (although the style has Text Clipping set to Clip and Stretch Height is false) and adds a "\n" to the string.

    Regards,
    Afonso