Skip to content

Commit cea9e09

Browse files
authored
Update p5.Renderer2D.js
Untested fix to #6652
1 parent 4ade39b commit cea9e09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/p5.Renderer2D.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1329,7 +1329,7 @@ class Renderer2D extends p5.Renderer {
13291329
}
13301330

13311331
this.drawingContext.font = `${this._textStyle || 'normal'} ${this._textSize ||
1332-
12}px ${font || 'sans-serif'}`;
1332+
12}px "${font || 'sans-serif'}"`;
13331333

13341334
this.drawingContext.textAlign = this._textAlign;
13351335
if (this._textBaseline === constants.CENTER) {

0 commit comments

Comments
 (0)