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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

[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:
    164
    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:
    164
    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:
    164
  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,588
    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/..."
     
    splogic, Hexane and nayakshasvat like this.
  6. dman8723

    dman8723

    Joined:
    Dec 18, 2017
    Posts:
    12
    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:
    103
    Careprod_DevTeam likes this.
  9. Da_Elf

    Da_Elf

    Joined:
    Jan 21, 2017
    Posts:
    15
    Took me a little while before i found this. it saved my butt
     
    LesBloom likes this.