Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

TextMesh Pro 1.41 & 1.50 GetCharacterFromFontAsset doesn't go through the fallbacks for fonts in fontWeightTable

Discussion in 'UGUI & TextMesh Pro' started by DavidZhongIGG, Oct 21, 2019.

  1. DavidZhongIGG

    DavidZhongIGG

    Joined:
    Apr 30, 2019
    Posts:
    7
    If I assign a font with fallbacks to one of the fontweights (i.e assigning a fontAsset to the bold fontweight) and use the Bold fontstyle, characters that are not in the bold fontweight fontAsset (but in the fontAsset's fallbacks) will not be used.

    E.g:

    1) fontAssetA has the 'G' character.
    2) fontAssetB doesn't have the 'G' character.
    3) fontAssetB's first fallback has the 'G' character.
    4) Assign fontAssetB as fontAssetA's bold font weight asset.
    5) Using fontAssetA in a TextMeshProUGUI component and using the bold font style, the character 'G' will be taken from fontAssetA instead of fontAssetB's fallback.