Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Official Localize the default TextMeshPro font

Discussion in 'Localization Tools' started by karl_jones, Nov 28, 2022.

  1. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,845
    Hi,

    A few people have requested a way to set the default font for TextMeshPro.
    I created a sample script to show how this can be done, it's surprisingly simple!

    https://gist.github.com/karljj1/dc70405de1bdc5527b10d93edf91b3ac

    You can extend this to also set things such as the default font size etc. There's many default values in TMP Settings that can be set in the same way.

    We will look at adding official support for this in the future.
     
    Last edited: Dec 3, 2022