Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

text() swallows characters in CHAR wrap mode #7437

Open
1 of 17 tasks
top-mind opened this issue Dec 20, 2024 · 2 comments · May be fixed by #7438
Open
1 of 17 tasks

text() swallows characters in CHAR wrap mode #7437

top-mind opened this issue Dec 20, 2024 · 2 comments · May be fixed by #7438

Comments

@top-mind
Copy link

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)

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
}

Screenshot from 2024-12-21 07-48-42

Cause:

A copy-paste bug in text() function.

@top-mind top-mind added the Bug label Dec 20, 2024
Copy link

welcome bot commented 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!

@top-mind
Copy link
Author

Assumption: no one use textWrap(CHAR) after release 1.4.0 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant