Using multiple fonts for regular text, italic text, and bold text and character spacing

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Jesse
Posts: 8
Joined: Sun Jun 02, 2019 8:03 am

Using multiple fonts for regular text, italic text, and bold text and character spacing

Post by Jesse »

Hello Tony,

I am extremely grateful for the help you gave me before and I had a couple more questions if you don't mind.

Is it possible to use a separate font for italic or bold?

So for example
Base Font - regular text
Italic Font - italic font when using the italic rich text codes
Bold Font - bold font when using the bold rich text codes

So essentially there could be up to three fonts that could display in one text box. Is this sort of thing possible?

Other question is with character spacing
I would like to control the character spacing for certain text boxes. Not at runtime but set up to display text with a bit more space between each character.

I would be grateful for any help. Thank you!

Warm Regards,
Jesse
User avatar
Tony Li
Posts: 21679
Joined: Thu Jul 18, 2013 1:27 pm

Re: Using multiple fonts for regular text, italic text, and bold text and character spacing

Post by Tony Li »

Hi,

TextMesh Pro does all of that, and the Dialogue System has integrated TextMesh Pro support. See TextMesh Pro Support.

Use the <font> tag for different fonts:

Image

and set up character spacing in the TextMeshProUGUI component's inspector.
Jesse
Posts: 8
Joined: Sun Jun 02, 2019 8:03 am

Re: Using multiple fonts for regular text, italic text, and bold text and character spacing

Post by Jesse »

Thank you so very much, Tony!

I ask and you provide perfect solutions each time. I just left a 5-star review on your asset. You are awesome, thank you!!!
User avatar
Tony Li
Posts: 21679
Joined: Thu Jul 18, 2013 1:27 pm

Re: Using multiple fonts for regular text, italic text, and bold text and character spacing

Post by Tony Li »

Thank you for the review. I really appreciate it!
Post Reply