Closed davepagurek closed 3 months ago
1.9.1
Firefox 117
MacOS 14.2.1
It looks like https://github.com/processing/p5.js/pull/6667/files inadvertantly broke 'monospace' and 'sans-serif' as valid inputs to textFont by putting quotes around them internally.
'monospace'
'sans-serif'
textFont
textFont('sans-serif')
textFont('monospace')
function setup() { createCanvas(400, 400); } function draw() { background(220); fill(0) textSize(20) textFont('sans-serif') textAlign(LEFT, TOP) text('test', 0, 0) }
https://editor.p5js.org/davepagurek/sketches/U0Oc591xJ
Most appropriate sub-area of p5.js?
p5.js version
1.9.1
Web browser and version
Firefox 117
Operating system
MacOS 14.2.1
Steps to reproduce this
It looks like https://github.com/processing/p5.js/pull/6667/files inadvertantly broke
'monospace'
and'sans-serif'
as valid inputs totextFont
by putting quotes around them internally.Steps:
textFont('sans-serif')
ortextFont('monospace')
Snippet:
https://editor.p5js.org/davepagurek/sketches/U0Oc591xJ