-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Description
Most appropriate sub-area of p5.js?
- Accessibility
- Color
- Core/Environment/Rendering
- Data
- DOM
- Events
- Image
- IO
- Math
- Typography
- Utilities
- WebGL
- Build process
- Unit testing
- Internationalization
- Friendly errors
- Other (specify if possible)
p5.js version
2.0.5
Web browser and version
firefox 142.0.1
Operating system
win 10
Steps to reproduce this
Steps:
- run the code in the snippet in p5js 2.0.5
- no text is drawn and
WEBGL: only Opentype (.otf) and Truetype (.ttf) fonts with glyph data are supported
3.same code works pre 2.0 ( https://editor.p5js.org/lmccart/sketches/fXAu0pIYM )
Snippet:
let font;
async function setup() {
font = await loadFont("Roboto-Bold.ttf");
createCanvas(100, 100, WEBGL);
textFont(font);
textSize(width / 3);
textAlign(CENTER, CENTER);
}
function draw() {
background(0);
let time = millis();
rotateX(time / 1000);
rotateZ(time / 1234);
text('p5.js', 0, 0);
}
seems to be a regression based on closed report #3818 ( its an old report but its what google showed when searching for the error message )