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

Resolved How can I set font for each locale?

Discussion in 'Localization Tools' started by kouresearch, Dec 4, 2020.

  1. kouresearch

    kouresearch

    Joined:
    Dec 18, 2018
    Posts:
    8
    Is there a way to specify font for each locale (instead of changing every font of Text components manually)?
    Or are there plans to develop such a feature later? Please let me know.
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,846
    Yes we have a feature being worked on that will let you change anything per locale on a component including fonts.
     
    Last edited: Dec 4, 2020
  3. kouresearch

    kouresearch

    Joined:
    Dec 18, 2018
    Posts:
    8
    Sounds great. I'll wait for that! :)
     
  4. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,846
  5. sniffle63

    sniffle63

    Joined:
    Aug 31, 2013
    Posts:
    363
    karl_jones likes this.
  6. SamTyurenkov

    SamTyurenkov

    Joined:
    May 12, 2018
    Posts:
    84
    Another possible way to do this, is to set a fallback font. This works project-wide, without having to set it for every component.

     
    karl_jones likes this.
  7. ManuelRauber

    ManuelRauber

    Joined:
    Apr 3, 2015
    Posts:
    114
    Hi Karl,

    that is currently included, right?

    But is there a possibility to set a font for a locale that is used without having to change every font in every TMPUGUI?

    (Without using the fallback font, the sounds a bit like a workaround, but is still a nice idea)
     
  8. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,846
    No, unfortunately, you will need to set the TMP component up to use a localized font. Once this is done then you can change the font in the Asset Table if you need it to be changed for all of them in the future. I don't believe TMP has support for changing the default font at the moment, ill speak to the dev and see if they have any ideas for the future.
     
  9. ManuelRauber

    ManuelRauber

    Joined:
    Apr 3, 2015
    Posts:
    114
    Hm, I think that could also be implemented right now, because the localization system already knows how to change the font of a TMPUGUI component right?

    The locale asset itself could have a Font property for TMP and automatically set that (like it would do it, if it is a tracked property).

    Don't you think, that would already be possible?