How to use a custom font in Unity

In by John FrenchPublished Updated

There are two different methods for adding a custom font to Unity, depending on whether or not you’re using the legacy Text object, or a Text Mesh Pro object.

Using a custom font with the Legacy Text object

  1. Import the font you want to use by dragging it into the assets panel
  2. Set the font field by dragging the font asset to it, or by selecting it using the circle select button

Using a custom font with a Text Mesh Pro text object

  1. Import the font you want to use by dragging it into the assets panel
  2. Right click on the font and select Create > TextMeshPro > Text Asset
  3. Set the font field of the text mesh pro text object by dragging the font asset to it, or by selecting it using the circle select button

If you can’t set the font or the font does not display correctly

Variable font types may display incorrectly in a legacy text object, typically displaying only the thinnest variation of the font. While in a text mesh pro object, you may not be able to set a variable font at all.

For this reason it’s generally better to only use static fonts that contain one variation.