# Formatting one set of text with multiple styles

**URL:** <https://forums.unrealengine.com/t/formatting-one-set-of-text-with-multiple-styles/1667284>\
**Category:** UI\
**Tags:** format, textbox, unreal-engine, Widget, question\
**Created:** [February 5, 2024, 6:19am UTC](https://forums.unrealengine.com/t/formatting-one-set-of-text-with-multiple-styles/1667284 "2024-02-05T06:19:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Links14](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Links14](https://forums.unrealengine.com/u/Links14)\
**Post date:** [February 5, 2024, 6:19am UTC](https://forums.unrealengine.com/t/formatting-one-set-of-text-with-multiple-styles/1667284/1 "2024-02-05T06:19:26Z")

</div>

Hi, I have been making modifiable text with a rich text box that allows me to add bold and italicization formatting to specific parts of a string, ie.

Default\</\> text\</\>

Assuming Boldx creates bold and italicsx creates italics, the word default is bolded and text is italicized.

My question is, is there a way to format the same string of text with multiple styles? ie.

Default text\</\>\</\>

Would create the string “Default text” as bolded and italicized instead of printing a boldened  
“Default text\</\>”

Thank you for your time!

---

<div class="post-metadata">

**Author:** ![Arodi007](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arodi007/32/1022275_2.png) [@Arodi007](https://forums.unrealengine.com/u/Arodi007)\
**Post date:** [February 5, 2024, 7:49am UTC](https://forums.unrealengine.com/t/formatting-one-set-of-text-with-multiple-styles/1667284/2 "2024-02-05T07:49:18Z")

</div>

You mean this one ?, you can use Bold Italic :

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/d/8/dd8461f20845ee5d72ec5be2b30c22720af0aa2d.png)

I don’t think you can merge style, let say one style is Red text and the other one is Orange, it will just overwrite even if that possible.  
A tag style inside another another tag will be read as a plain text unless you do some string manipulation.

---

<div class="post-metadata">

**Author:** ![Links14](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Links14](https://forums.unrealengine.com/u/Links14)\
**Post date:** [February 5, 2024, 5:18pm UTC](https://forums.unrealengine.com/t/formatting-one-set-of-text-with-multiple-styles/1667284/3 "2024-02-05T17:18:59Z")

</div>

I see thank you.

I made a custom text font that made the text move but I wanted to know if I’d have to make bold, italic, and normal version of it or if I could change those within my text text document to incorporate multiple formats kinda like in html.  
Not to mention that if I wanted to make the text a different color I would have to make another set in the style sheet plus whichever formatting I needed.

Either way thank you for your help, it is much appreciated! Hopefully a feature like this can be added at some point to make the formatting a bit more dynamically capable.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [March 6, 2024, 5:19pm UTC](https://forums.unrealengine.com/t/formatting-one-set-of-text-with-multiple-styles/1667284/4 "2024-03-06T17:19:10Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
