processing / processing/p5.js

text() should handle single words wider than bounding box

Open
#4,652 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area:Typography Bug
Dominant language
JavaScript
Stars
24k
Forks
3.8k
Avg merge
3d 16h
Merged PRs (30d)
25

Description

img

If there's a single word that doesn't fit within the bounding box, it still shows up.

But it's clearly limited by the function.

img2

"Text that does not fit completely within the rectangle specified will not be drawn to the screen. "

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with p5.js text() and a single word wider than the bounding box, then inspect the text() implementation and its existing tests. Done means oversized words follow the documented behavior that text outside the specified rectangle is not drawn.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.