# Bitmap text wrap

**URL:** <https://phaser.discourse.group/t/bitmap-text-wrap/3942>\
**Category:** Phaser 3\
**Created:** [October 14, 2019, 12:34pm UTC](https://phaser.discourse.group/t/bitmap-text-wrap/3942 "2019-10-14T12:34:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dvnecroillusion](https://avatars.discourse-cdn.com/v4/letter/d/0ea827/32.png) [@dvnecroillusion](https://phaser.discourse.group/u/dvnecroillusion)\
**Post date:** [October 14, 2019, 12:34pm UTC](https://phaser.discourse.group/t/bitmap-text-wrap/3942/1 "2019-10-14T12:34:05Z")

</div>

Hi everyone!

I want to know if there is a way to wrap bitmaptext in a defined width. Unfortunately, I’ve searched and tried many different solution with any success and I saw that old phaser 2 maxWidth has been deprecated.

Thanks!

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [October 15, 2019, 2:41am UTC](https://phaser.discourse.group/t/bitmap-text-wrap/3942/2 "2019-10-15T02:41:51Z")

</div>

[http://labs.phaser.io/edit.html?src=src/game%20objects/text/static/word%20wrap%20by%20width.js](http://labs.phaser.io/edit.html?src=src/game%20objects/text/static/word%20wrap%20by%20width.js)

---

<div class="post-metadata">

**Author:** ![dvnecroillusion](https://avatars.discourse-cdn.com/v4/letter/d/0ea827/32.png) [@dvnecroillusion](https://phaser.discourse.group/u/dvnecroillusion)\
**Post date:** [October 15, 2019, 2:45pm UTC](https://phaser.discourse.group/t/bitmap-text-wrap/3942/3 "2019-10-15T14:45:37Z")

</div>

Sorry, but the link doesn’t work

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [October 15, 2019, 5:12pm UTC](https://phaser.discourse.group/t/bitmap-text-wrap/3942/4 "2019-10-15T17:12:16Z")

</div>

> **[Phaser - Examples - Word Wrap By Width](https://phaser.io/examples/v3/view/game-objects/text/static/word-wrap-by-width)**
>
> Desktop and Mobile HTML5 game framework. A fast, free and fun open source framework for Canvas and WebGL powered browser games.

---

<div class="post-metadata">

**Author:** ![dvnecroillusion](https://avatars.discourse-cdn.com/v4/letter/d/0ea827/32.png) [@dvnecroillusion](https://phaser.discourse.group/u/dvnecroillusion)\
**Post date:** [October 16, 2019, 3:42pm UTC](https://phaser.discourse.group/t/bitmap-text-wrap/3942/5 "2019-10-16T15:42:35Z")

</div>

Thanks for the help, but in the example it’s used text instead of bitmapText.

In my case, I need to wrap this:

this.popupTxt = this.configScene.add.bitmapText(-this.popupBackgroundTop.width / 2 + 210, this.popupBackgroundTop.height-165, ‘frutiger’, this.txtPopup, 19, 0).setCenterAlign().setOrigin(0.5, 0)
