processing/p5.js
Auf GitHub ansehentextAscent() and textDescent() broken if textSize > 200
Open
#8.771 geöffnet am 8. Mai 2026
Area:TypographyBugHelp Wanted
Repository-Metriken
- Stars
- (20.784 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 8T 13h) (45 gemergte PRs in 30 T)
Beschreibung
Most appropriate sub-area of p5.js?
- Accessibility
- Color
- Core/Environment/Rendering
- Data
- DOM
- Events
- Image
- IO
- Math
- Typography
- Utilities
- p5.strands
- WebGL
- DevOps, Build process, Unit testing
- Internationalization (i18n)
- Friendly Errors
- Other (specify if possible)
p5.js version
1.11.13
Web browser and version
Chrome latest
Operating system
MacOS
Steps to reproduce this
Steps:
- textSize(201)
- textDescent()
Snippet:
https://editor.p5js.org/JuanIrache/sketches/2VVe5sram
When text size is larger than 200, trextAscent() and textDescent() break. Their total sum is correct, but they don't point to the top and bottom of the font any more.