Jump to content

Font trouble in Cocoon Canvas+


Recommended Posts

I'm trying to build a native app with cocoon and canvas+ and have some trouble with the fonts. Everything works fine when running the game in a normal browser or in cocoon webview+. But in canvas+ mode, all text renders really small and pixelated. The code for the text: 

this.scoreText = this.game.add.text(pos.x, pos.y, "0", {
    font: "18px Arial",
    fontWeight: 'bold',
    fill: "#FFFFFF"
this.scoreText.anchor.setTo(0.5, 0);

I don't reference a .ttf or anything. Do I explicitly need to include an Arial font for it to work in canvas+ mode?

Link to comment
Share on other sites


  • Recently Browsing   0 members

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