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.

[TextMeshPro] <font> rich text tag not working

Discussion in 'UGUI & TextMesh Pro' started by LesBloom, Nov 19, 2018.

  1. LesBloom

    LesBloom

    Joined:
    Feb 2, 2017
    Posts:
    144
    Hello,

    I am trying to get the rich text font support working. If I use the following input, with any of my fonts, I always get the following output, but with no font actually changed.

    Input
    <font="fontAssetName">string</font>

    Output
    <font="fontAssetName">string

    I am referring to the information found here http://digitalnativestudios.com/textmeshpro/docs/rich-text/

    Any help would be aprpeciated
    Thanks
     
    Arshd likes this.
  2. LesBloom

    LesBloom

    Joined:
    Feb 2, 2017
    Posts:
    144
    It appears as though it's failing with every font asset that I have personally created. The font assets that were included with the TMP install work.

    I don't know what would cause this behavior though.
     
    Arshd likes this.
  3. LesBloom

    LesBloom

    Joined:
    Feb 2, 2017
    Posts:
    144
  4. mandivision

    mandivision

    Joined:
    Mar 17, 2019
    Posts:
    8
    LesBloom likes this.
  5. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    6,581
    The location of where these TMP resources should be located is defined in the TMP Settings where by default for font asset it is in "Resource/Fonts & Materials/..."
     
    Hexane and nayakshasvat like this.
  6. dman8723

    dman8723

    Joined:
    Dec 18, 2017
    Posts:
    11
    LesBloom likes this.
  7. OgnjenSelver

    OgnjenSelver

    Joined:
    Aug 27, 2021
    Posts:
    3
    I would like to add on this, it has to be TMP pro text field. If this isnt working for you please check that if you are using old text like in my case( most things worked on old text like color, size etc. but font).
     
  8. tomkail_betterup

    tomkail_betterup

    Joined:
    Nov 17, 2021
    Posts:
    61