Skip to content

Commit abd3ba0

Browse files
author
Lauren McCarthy
committed
Merge pull request #374 from scottgarner/master
Setting font defaults for new canvases/graphics per #356
2 parents 900a836 + dcc8bae commit abd3ba0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/objects/p5.Graphics.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ define(function(require) {
5757
this.drawingContext.fillStyle = '#FFFFFF';
5858
this.drawingContext.strokeStyle = '#000000';
5959
this.drawingContext.lineCap = constants.ROUND;
60+
this.drawingContext.font = 'normal 12px sans-serif';
6061
};
6162

6263
p5.Graphics.prototype = Object.create(p5.Element.prototype);

0 commit comments

Comments
 (0)