From 68b37e7f4818c543b3dac738951eba75431ccb97 Mon Sep 17 00:00:00 2001 From: yugalkaushik Date: Mon, 9 Feb 2026 10:48:31 +0000 Subject: [PATCH] Improve WebGL font error message to suggest textFont() usage --- src/webgl/text.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webgl/text.js b/src/webgl/text.js index 439f209ed8..2a2f5d66d3 100644 --- a/src/webgl/text.js +++ b/src/webgl/text.js @@ -685,7 +685,7 @@ function text(p5, fn) { if (!p5.Font.hasGlyphData(this.states.textFont)) { console.log( - 'WEBGL: only Opentype (.otf) and Truetype (.ttf) fonts with glyph data are supported' + 'WEBGL: only Opentype (.otf) and Truetype (.ttf) fonts with glyph data are supported. Make sure to set the font using textFont() before drawing text.' ); return; }