# Text wrapping solution

**URL:** <https://forum.babylonjs.com/t/text-wrapping-solution/12890>\
**Category:** Questions\
**Created:** [July 27, 2020, 3:33pm UTC](https://forum.babylonjs.com/t/text-wrapping-solution/12890 "2020-07-27T15:33:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![enquel](https://avatars.discourse-cdn.com/v4/letter/e/ed655f/32.png) [@enquel](https://forum.babylonjs.com/u/enquel)\
**Post date:** [July 27, 2020, 3:33pm UTC](https://forum.babylonjs.com/t/text-wrapping-solution/12890/1 "2020-07-27T15:33:54Z")

</div>

Can I wrap text using drawText() with Dynamic Texture or something similar out-of-the-box, or do I have to resort to attaching gui buttons? I have tried to approach this topic manually, but can’t get newline or \<br\> to work at all. Quick R&D showed others have similar issues. I have found that there is thie HTML property called innerText - how can I refer to this? Thanks in advance

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [July 27, 2020, 3:47pm UTC](https://forum.babylonjs.com/t/text-wrapping-solution/12890/2 "2020-07-27T15:47:49Z")

</div>

With dynamic texture, if you pass your canvas in the constructor you can be in full control of it and once done drawing you can call update to flush the new state on the GPU.

---

<div class="post-metadata">

**Author:** ![enquel](https://avatars.discourse-cdn.com/v4/letter/e/ed655f/32.png) [@enquel](https://forum.babylonjs.com/u/enquel)\
**Post date:** [July 27, 2020, 4:03pm UTC](https://forum.babylonjs.com/t/text-wrapping-solution/12890/3 "2020-07-27T16:03:34Z")

</div>

@sebavan thank you for the tip! One question: will that work on mobiles (webGL 1)?
