Jump to content

Text wrapping issues with stroke


drfrankius
 Share

Recommended Posts

So I am having issues using text wrapping once a stroke has been applied to my Text Object. The second line of my text is not visible once a stroke has been applied. If i remove the stroke I can see multiple lines. sample code below.

 

var style = { font: "40px hnvb", fill: "#FFFFFF", align: "left", wordWrap: true, wordWrapWidth: 720, stroke: "black", strokeThickness: "10" };this._textField = new Phaser.Text(this.game, 1024 / 2, 700, "", style); this.addChild(this._textField);

So do i need to force a redraw somehow or something? I am setting the text at a later point / multiplie times.

 

Note: I was initially using version 2.1.3 and then tried 2.2 RC build and had the same issue.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...