Skip to content

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

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.

1 participant