Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Strange artefacts in the text using BitmapFont

Discussion in 'Project Tiny' started by reallyhexln, Apr 1, 2019.

  1. reallyhexln

    reallyhexln

    Joined:
    Jun 18, 2018
    Posts:
    69
    Hi, guys.

    Do you have any problems with displaying Bitmap fonts in the browser?

    I have generated BitmapFont from my .ttf file, then I have added it to my text field, and the text is displaying fine in the editor, but when I trying to open it in the browser, I get some strange artefacts over the space characters (see attachment).

    I have already tried many settings in TextMeshPro, but every time I get the same result.

    Editor:


    Browser:
     
  2. Pakor

    Pakor

    Joined:
    Feb 2, 2017
    Posts:
    32
    What happens here is due to the way fonts get loaded into unity. When a font has letters that are very close to eachother to keep the 'spritesheet' as small as possible it can cause those small lines. Those lines are basically small parts of the letters above the one you are seeing being printed with this one. This is usually solved by changing the size of the screen or some camera/quality settings in regular Unity. I however have not found a way to solve this in Tiny. Someone please mention if they do know a way.
     
    leppryt and reallyhexln like this.