Description

The custom font asset used.


using UnityEngine;
using System.Collections;
using TMPro;

public class ExampleClass : MonoBehaviour
{
    void Awake()
    {
        TextMeshPro textmeshPro = GetComponent<TextMeshPro>();
        TMP_FontAsset font = Resources.Load("ARIAL SDF", typeof(TMP_FontAsset)) as TMP_FontAsset;
        textmeshPro.font = font;
    }    
}