Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Use fallback font even if primary font contains the characters

Discussion in 'UGUI & TextMesh Pro' started by AndyWarrior, Jan 10, 2023.

  1. AndyWarrior

    AndyWarrior

    Joined:
    Feb 9, 2017
    Posts:
    6
    Hello,

    I have the following problem. I have a primary font that I use for my project that contains the characters and symbols from the English language. I also have a secondary font that I added to the fallback fonts list of my project settings that contains Asian characters but also contains some of the ASCII characters that the primary font has.

    The problem I have is that both fonts look different from each other, so whenever there's a sentence that uses Asian characters and ASCII symbols like a question mark or exclamation mark, the Asian characters use the secondary fallback font, but the ASCII symbols use the primary font which makes the sentence look weird since it's using different fonts.

    Is there a way to use the fallback font for all the characters that it contains even if the primary font also contains those characters?
     
  2. halley

    halley

    Joined:
    Aug 26, 2013
    Posts:
    2,274
    I think the easier thing to do, when using a TextMeshPro text, is to specify the <font> in the text itself.
     
    AndyWarrior likes this.
  3. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,135
    AndyWarrior likes this.
  4. AndyWarrior

    AndyWarrior

    Joined:
    Feb 9, 2017
    Posts:
    6