# TextField setTextFormat() method

**URL:** <https://forum.kirupa.com/t/textfield-settextformat-method/255565>\
**Category:** flash\
**Created:** [March 24, 2008, 8:33pm UTC](https://forum.kirupa.com/t/textfield-settextformat-method/255565 "2008-03-24T20:33:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jwilliam](https://avatars.discourse-cdn.com/v4/letter/j/cc9497/32.png) [@jwilliam](https://forum.kirupa.com/u/jwilliam)\
**Post date:** [March 24, 2008, 8:33pm UTC](https://forum.kirupa.com/t/textfield-settextformat-method/255565/1 "2008-03-24T20:33:43Z")

</div>

When I have a line of text in a TextField with portions of the text having different fonts, it seems to be breaking the text where the font changes. So, if I have “Hello World” and Hello is Font A and World is Font B, it is rendering the text like so:

Hello  
World

Is this normal behavior and, if so, can I stop it? Note that I am using TextFormats to do this, not htmlText.

Thanks.
