Jump to content

Web font not shown correctly


Recommended Posts

I added text into a sprite as child. My text could not show font correctly. Anybody could help me?

My code is as follows:

this.style = { font: "30px Arial", fill: "#000", boundsAlignH: "center", boundsAlignV: "top" };


this.textContent = this.add.text( -30, -60, "test content", this.style);



However, what I got on test webpage was not Arial font, but as shown in attached image. Why is that?

wrong font.png

Link to comment
Share on other sites


  • Recently Browsing   0 members

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