Skip to content

Docs: Clarify whitespace behavior in textWidth() (Fixes #7745)#8565

Open
AsthaMishra-ash wants to merge 1 commit intoprocessing:mainfrom
AsthaMishra-ash:fix-textwidth-whitespace-doc
Open

Docs: Clarify whitespace behavior in textWidth() (Fixes #7745)#8565
AsthaMishra-ash wants to merge 1 commit intoprocessing:mainfrom
AsthaMishra-ash:fix-textwidth-whitespace-doc

Conversation

@AsthaMishra-ash
Copy link

Resolves #7745

Changes:

  • Clarified the documentation of textWidth() to explain how whitespace characters are handled.
  • No functional code changes were made.
  • This is a documentation-only update.

Screenshots of the change:

Not applicable (documentation update only).

PR Checklist

  • npm run lint passes
  • [Inline reference] is included / updated
  • [Unit tests] are included / updated

@welcome
Copy link

welcome bot commented Feb 25, 2026

🎉 Thanks for opening this pull request! For guidance on contributing, check out our contributor guidelines and other resources for contributors!
🤔 Please ensure that your PR links to an issue, which has been approved for work by a maintainer; otherwise, there might already be someone working on it, or still ongoing discussion about implementation. You are welcome to join the discussion in an Issue if you're not sure!
🌸 Once your PR is merged, be sure to add yourself to the list of contributors on the readme page !

Thank You!

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.

[p5.js 2.0 Beta Bug Report]: Document difference between textWidth and fontWidth with respect to whitespace

1 participant