Make sure you can use the same font on all platforms

Page update date :
Page creation date :

Verification environment

Windows
  • Windows 11
Unity Editor
  • 2020.3.25f1

Prerequisites for this tip

The following settings have been made in advance as a prerequisite for the explanation of these tips.

About fonts available in Unity

is the only font available by default in Arial Unity. Arial is in English only, does not include Japanese, etc.

Japanese is displayed for development and game execution on Windows, This is because if a character that does not exist in the font is used on the OS side, it MS Pゴシック will be replaced with .

If you try to display Japanese in a font in WebGL Arial , the font replacement process will not occur, so Japanese will not be displayed at all.

Therefore, I think that it is standard to prepare a font for the game and use the font bundled with the game.

Fonts used in this sample

衡山毛筆フォント行書 is used. You can download it from the following site.

About Font Usage Licenses

How you can use the font you choose is determined by each font. Be sure to read the terms of use and check whether it can be used for games and whether it can be distributed as a paid game.

Incorporating fonts into your Unity project

Prepare any font file you want to use.

Drop this into your project. Since this is a sample, I Scenes put it directly in the folder, If the game is of a reasonable size, please divide the folders properly.

Select the object that you want to work with text.

There is a "Font" in the Text Inspector component, so select it from the button on the right or drop the font you put in your project to set it.

This will change the font of the text on the editor. The font used this time is only for Japanese and English, so the display of other languages is strange, but I can confirm that the font itself is applied correctly.

The fonts you put in the project are built into the game, so you can use the specified fonts in any environment. Even when running with WebGL, Japanese is displayed correctly.