Skip to content

Improve WebGL font error message to suggest textFont() usage#8513

Merged
davepagurek merged 2 commits intoprocessing:dev-2.0from
yugalkaushik:webgl-fix
Feb 12, 2026
Merged

Improve WebGL font error message to suggest textFont() usage#8513
davepagurek merged 2 commits intoprocessing:dev-2.0from
yugalkaushik:webgl-fix

Conversation

@yugalkaushik
Copy link
Contributor

Improves the error message when rendering text in WebGL mode without properly setting a font.

Problem:
The current error "only Opentype (.otf) and Truetype (.ttf) fonts are supported" is misleading when users have loaded a valid font but forgot to call textFont().

Solution:
Added clarification: "Make sure to set the font using textFont() before drawing text."

PR Checklist

@davepagurek davepagurek merged commit 7d6153b into processing:dev-2.0 Feb 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants