Skip to content

Commit dcc8bae

Browse files
committed
Setting font defaults for new canvases/graphics.
1 parent 6981688 commit dcc8bae

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)