-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Open
Labels
Description
Increasing access
Completing unfinished TODO implementations improves the reliability of WebGL text rendering. Using FES for error messages ensures consistency and helps beginners understand issues with clear, friendly warnings that can be controlled via p5.disableFriendlyErrors.
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)
Feature enhancement details
src/webgl/text.js has several unfinished TODOs and raw console.log calls:
- _applyTextProperties() (line 7-12) — marked
@TODO finish implementation, missing return value - textWidth() (line 20) — silently returns
0with a// TODO: errorcomment when font is not OpenType - _renderText() (line 646, 656) — uses raw
console.loginstead ofp5._friendlyError()for missing font warnings
Reactions are currently unavailable