naninovel / docs

Documentation website

Home Page:https://naninovel.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dynamic fonts missing characters under WebGL

elringus opened this issue · comments

When using an uGUI with a dynamic font, at some point random characters could stop rendering properly when running a WebGL build.

The issue is caused by Unity's text engine failing to resize font atlases under WebGL.

For a workaround, either use TMPro text or switch to non-dynamic fonts, eg:

Doesn't seem to reproduce on Unity 2019.4.22 and later. If someone happen to reproduce this with a recent Unity release, please contact the support.

Reproduced at 2021.2.8f1 (MacOS Editor, WebGL build)
But I'm too lazy to make a bug report, just keeping you posted.

Reproduced at 2021.2.8f1 (MacOS Editor, WebGL build)

Well, they've either broke it again or didn't fix on MacOS specifically (our WebGL demo is working fine on Windows with Unity 2019.4.25). In either case, please contact Unity support if you'd like to report the issue.

Is there a way to use dynamic fonts with emojis in webgl?

Is there a way to use dynamic fonts with emojis in webgl?

Naninovel no longer uses Unity's legacy text component. TMPro is the default solution and does support emojis on all platforms.