Text Mesh and Font issues on Webplayer

I’m having some odd issues concerning some Text Mesh objects I have in my world when building my project to the webplayer. Occasionally when I load into the level, the Text Mesh is either garbled and illegible, or the font is not rendered at all. I’m printing the TextMesh.text, TextMesh.font, and the objects material on the Mesh Renderer at runtime and even when the bug happens, all of the values are initialized correctly according to the debug logs. I never seem to be missing a material or font, but they’ll occasionally render incorrectly, or just not at all.

The font that is created is dynamic, I’m taking the Impact font and changing its style to bold. The imported font in my project is set to Dynamic, and I have the Incl. Font Data bool checked. I’m using the 3D Text Shader under the GUI shaders for the object, and I change the color of the material during runtime. My font has a material assigned, and this issue never occurs during the editor playthrough.

Any ideas what could be causing this? I’ve tested it dozens of times in the webplayer environment, and it seems stable in Safari (have not seen this happen at all yet while debugging in Safari), but I can get it to occur after several attemps (sometimes it only takes 2-3 refreshes to see it break, other times its 5-6+ times) while loading it through Chrome and Firefox.

Thanks

I’ve fixed the issue, but not in the way that I was hoping to. I changed the dynamic fonts to unicode and imported the sizes that I needed and this fixed the glitch. As a test, I put one Text Mesh with the dynamic font and one with the unicode font into the world and reloaded until the dynamic font finally broke. When the dynamic font glitched, the Unicode was still working correctly.

I’m not sure why this was happening, but I’m guessing its due to loading the font data of the dynamic font. I did not have the font I was using installed on my machine (on a Mac, btw), so I’m guessing it would occasionally glitch and try to fallback on another font and then that caused the broken font issues.