Can't Change Font with rich text tags TextMeshPro

More
6 years 7 months ago #2996 by Eurban
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!

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #2997 by Frank
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

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #2998 by Eurban
Ah! you're right, thank you!

Please Log in or Create an account to join the conversation.

Time to create page: 0.197 seconds
Template by JoomlaShine