(SOLVED) Text glitched out in WGL build (works fine in other ways)

Hi,

I’ve been working on a series of games, and I’ve run into a problem on the last instalment that is being made before publishing online, and I cannot seem to resolve it. This is a problem that happened fairly recently out of nowhere, and I’m not quite sure why or what I’ve done to trigger this (if it is my problem, which I highly doubt as it only seems to happen on WebGL).

Whenever I play on the WebGL build of the game (which is what I aim to make for an online release), some letters from the text are missing whenever the line is visible (it’s random letters and not a set one). This only happens on Text elements and not on other UI elements like Buttons and Dropdown Menus.

How the text is written:

  • Fetches a string from an array of lines initialised when the game starts running.
  • Displays the text when I SetActive() the object.

I’ve tried changing the compression level, compiling it with just the text (because a video plays beforehand), manipulation… at this point, I am out of things to try.


Looks like the font atlas is broken. Have seen this before. Check if you can restrict the numer of characters, and what the size of the generated atlas texture is (it may be too big for WebGL or too small so not all chars can fit into it).

How do I check the size of the atlas?

Don’t worry actually, I changed some settings in the fonts and that fixed the problem.
Thanks!

I am also having the same problem. Please let me know what settings you changed in the font