Welcome, Guest
Username: Password: Remember me

TOPIC: Can't Change Font with rich text tags TextMeshPro

Can't Change Font with rich text tags TextMeshPro 3 weeks 13 hours ago #2996

  • Eurban
  • Eurban's Avatar
  • Offline
  • New Member
  • Posts: 3
  • Karma: 0
I'm attempting to change a font mid-string using rich text tags with Text Mesh Pro, but it doesn't seem to be working.

eg: <font="theFont SDF"> stuff </font>

The above tags will just show entirely in the string.

Is it possible to change the font this way while using the I2 Localize component?

Thanks!
The administrator has disabled public write access.

Can't Change Font with rich text tags TextMeshPro 3 weeks 12 hours ago #2997

  • Frank
  • Frank's Avatar
  • Offline
  • Administrator
  • Posts: 1059
  • Thank you received: 229
  • Karma: 66
Hi,
I2 Localization is just passing the string you have into TextMeshPro text, which should be changing the font.
TMPro is the one managing the font change in the middle of a text.

If you remove the Localize component, and paste that text into the TextMeshPro label, does it change the font?
According to the TMPro docs, the font needs to be in "an specifc folder, defined in the settings asset."
digitalnativestudios.com/textmeshpro/docs/settings/#font
Are you :-) Give I2L 5 stars!
Are you :-( Please lets us know how to improve it!
To get the betas as soon as they are ready, check this out
The administrator has disabled public write access.

Can't Change Font with rich text tags TextMeshPro 3 weeks 12 hours ago #2998

  • Eurban
  • Eurban's Avatar
  • Offline
  • New Member
  • Posts: 3
  • Karma: 0
Ah! you're right, thank you!
The administrator has disabled public write access.
Time to create page: 0.166 seconds
Colors