WebGL arial font rendering

I have some UI elements using the Canvas system, they currently use the default Arial font.
When I export to WebGL, the font’s look considerably different to when viewed in the editor:

(Editor on left, WebGL on right)
2452872--168484--fonts.png

My main issue is the bold text in the word “Awake”. WebGL is putting the letters very close together and it’s not as bold.

I found an example of bold arial font on a webpage so I could make sure my browser wasn’t just rendering the font differently and on a normal website it looks fine, just like the editor version.

I haven’t tested yet whether putting my own font in will also suffer this problem, but it seems odd that the font would be rendered that differently in WebGL.

Unity WebGL does not have access to system fonts. Basically you need to provide your own fonts to have the WebGL build to be consistent with what you see in the Editor

1 Like

How to import system fonts for WebGL…
Help me, please!

You need to import your own font into the project. See here and for more details.

Thank you for reply!

I have same problem. in WebGL build i cant see “Armenian” text

How did you solve the issue? please mention the answer

1 Like