Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    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:
    8,142
    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
    Breamax, Potatas, tech_spyke and 3 others like this.