toggthedog Posted November 27, 2016 Share Posted November 27, 2016 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 More sharing options...
toggthedog Posted November 28, 2016 Author Share Posted November 28, 2016 For some context, this is the game in the browser with working fonts: https://gribbgames.com/flood/. This is a screenshot of how it looks in the Cocoon developer app with broken fonts: Link to comment Share on other sites More sharing options...
Recommended Posts