From dcc8baeb68515dcee3f57779bf9a5315f752d6b2 Mon Sep 17 00:00:00 2001 From: Scott Garner Date: Sun, 14 Sep 2014 12:56:03 -0700 Subject: [PATCH] Setting font defaults for new canvases/graphics. --- src/objects/p5.Graphics.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/objects/p5.Graphics.js b/src/objects/p5.Graphics.js index 4e4dffec21..53c66a8d8c 100644 --- a/src/objects/p5.Graphics.js +++ b/src/objects/p5.Graphics.js @@ -57,6 +57,7 @@ define(function(require) { this.drawingContext.fillStyle = '#FFFFFF'; this.drawingContext.strokeStyle = '#000000'; this.drawingContext.lineCap = constants.ROUND; + this.drawingContext.font = 'normal 12px sans-serif'; }; p5.Graphics.prototype = Object.create(p5.Element.prototype);