diff --git a/src/pixi/text/Text.js b/src/pixi/text/Text.js index 08a98c5..48e81d4 100644 --- a/src/pixi/text/Text.js +++ b/src/pixi/text/Text.js @@ -109,6 +109,8 @@ var lineHeight = this.determineFontHeight('font: ' + this.style.font + ';') + this.style.strokeThickness; this.canvas.height = lineHeight * lines.length; + if(navigator.isCocoonJS) this.context.clearRect(0,0,this.canvas.width,this.canvas.height); + //set canvas text styles this.context.fillStyle = this.style.fill; this.context.font = this.style.font;