Gui text markup?

Can i use markup(bold/italic) in text node?

No, I’m afraid not.

Maybe some workarounds? I have idea that i can split text to multiple nodes, with different font(normal/bold/italic and etc). I can imagine some bugs because fonts metrics of this fonts will be different, also linebreaking and etc.

Hmm, would it somehow be possible to combine the different variations into a single font file? Other than that I think splitting into multiple text nodes is your best bet.

2 Likes

I have tackled a similar problem. Solved it by creating a custom font file that includes both regular and bold version of the same typeface.

4 Likes

Can you tell more details? You use different character for normal and for bold value?

Yup, you can use a tool such as Fontforge to modify font files or (as in my case) splice them together.

1 Like