# How do I use change text style halfway through textField.text

**URL:** <https://forum.kirupa.com/t/how-do-i-use-change-text-style-halfway-through-textfield-text/224423>\
**Category:** Uncategorized\
**Created:** [May 2, 2007, 9:06am UTC](https://forum.kirupa.com/t/how-do-i-use-change-text-style-halfway-through-textfield-text/224423 "2007-05-02T09:06:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![clockwork](https://avatars.discourse-cdn.com/v4/letter/c/ebca7d/32.png) [@clockwork](https://forum.kirupa.com/u/clockwork)\
**Post date:** [May 2, 2007, 9:06am UTC](https://forum.kirupa.com/t/how-do-i-use-change-text-style-halfway-through-textfield-text/224423/1 "2007-05-02T09:06:43Z")

</div>

Or something like that … it doesn’t have to be a textbox.

How would you display this within a canvas:  
\*\*“Lorem \*\*ipsum dolor sit amet, consectetuer adipiscing elit. Nullam imperdiet. Proin dapibus. Aliquam tristique ante nec lacus. _Donec volutpat_ erat a sem. Lorem ipsum dolor sit amet, consectetuer [SIZE=5]adipiscing elit.[/SIZE] Curabitur facilisis viverra augue. Proin vel urna vitae metus rhoncus vestibulum.[FONT=Comic Sans MS] Suspendisse pellentesque condimentum magna.[/FONT] Class aptent taciti sociosqu ad litora torquent per conubia nostra, [FONT=Fixedsys][SIZE=3]per inceptos hymenaeos. Ut lacinia.”

[/SIZE][/FONT]I have dynamic HTML text that needs displaying but I really am stuck on how to accomplish this easily. I know the hard way, creating various text objects, placing them on the page, finding the width and height and rejigging based on space remaining. Is there a control that can do the above easier though?

Any Gurus out there?
