Closed
Description
Most appropriate sub-area of p5.js?
- AccessibilityColorCore/Environment/RenderingDataDOMEventsImageIOMathTypographyUtilitiesWebGLBuild processUnit testingInternationalizationFriendly errorsOther (specify if possible)
p5.js version
1.4.0-1.11.2
Web browser and version
MS Edge 131.0.2903.70 (Official build) (64-bit)
Operating system
Linux
Steps to reproduce this
Snippet:
function setup() {
createCanvas(100, 100);
textWrap(CHAR);
text("1\n222\n3", 0, 0, 20);
// which should be
// 1
// 22
// 2
// 3
// but
// 22
// 3
}
Cause:
A copy-paste bug in text() function.
Activity
welcome commentedon Dec 20, 2024
Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, please make sure to fill out the inputs in the issue forms. Thank you!
fix: text() swallows characters in CHAR wrap mode processing#7437
top-mind commentedon Dec 21, 2024
Assumption: no one use
textWrap(CHAR)
after release 1.4.0 ?dhowe commentedon Jan 10, 2025
fixed for 2.x in #7356