Is there an issue with automatic text wrapping in Phaser CE?

Hello teachers, I come from China. May I ask if this text auto wrap doesn’t work. Chinese characters

phaser ce v2.16.2

   this.text = this.add.text(0,0,"这是一段很长的文本需要自动换行显示",{
          font: "16px Arial",
          fill: "#ffffff",
          wordWrap: true,
          boundsAlignH: "left",
          backgroundColor: "#333",
          useAdvancedWrap: true,
          wordWrapWidth: 100,
          fontSize: getFontSize(56, gameWidth),
        })

:waving_hand:

There’s no style.useAdvancedWrap argument in add.text(). I guess there should be. You can use

this.text.useAdvancedWrap = true;
this.text.updateText();
1 Like

But the text seems to be divided, haha

Word wrap splits on the space character ' '.