# Text wrap question

**URL:** <https://forum.kirupa.com/t/text-wrap-question/301387>\
**Category:** Uncategorized\
**Created:** [December 8, 2009, 7:15pm UTC](https://forum.kirupa.com/t/text-wrap-question/301387 "2009-12-08T19:15:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![oluc](https://avatars.discourse-cdn.com/v4/letter/o/cc9497/32.png) [@oluc](https://forum.kirupa.com/u/oluc)\
**Post date:** [December 8, 2009, 7:15pm UTC](https://forum.kirupa.com/t/text-wrap-question/301387/1 "2009-12-08T19:15:17Z")

</div>

Hello!

If I have an a line of text such as: dinosaurs (t-rex and pterodactyl) and I put this into a textfield that is 300 px long - but I want “dinosaurs” to be on the first line and “(t-rex and pterodactyl)” to be on the second line, how do I do that? I set textfield.wordWrap = true; but that obviously is not going to do it because “dinosaurs” is not 300 px long and would take (t-rex) on the first line too.

I appreciate any help!!!
