Search Unity

Weird "Square" appears in text

Discussion in 'UGUI & TextMesh Pro' started by RemDust, May 22, 2018.

  1. RemDust

    RemDust

    Joined:
    Aug 28, 2015
    Posts:
    432
    Hi there,
    I'm trying to use TextMesh pro for the first time. :)

    I manage to load text I saved in a simple txt file outside of unity but paragraphs returns/back to the line are "translated" as a weird square icon instead.

    How can I fix this, is this a basic newbie mistake ??
     
  2. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    This would be indicative that some of the characters you are trying to display are missing from the Font Asset you created or are using.

    Please be sure to review the video about Font Asset Creation and to make sure your Font Asset contains all the glyph you need.
     
  3. RemDust

    RemDust

    Joined:
    Aug 28, 2015
    Posts:
    432
    Hi Stephan thank you for answering my question.
    I can't find any character that could lead to an issue though... the "character" supposedly missing is just a "return key" to make a new paragraph !
     
  4. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    char(10) which is Linefeed and char(13) which is Carriage return are control characters and have no visual representation.

    Can you provide me with the exact text and the source font file you are using to create the font asset. I can take a look and provide you with more insight on what is going on here.