fix textToModel regression for space characters by skyash-dev · Pull Request #8429 · processing/p5.js

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@skyash-dev

Copy link

Contributor

Resolves #8428

Changes:

  • Fixes a regression where textToModel(' ') would throw instead of returning an empty geometry.
  • Restores the behavior from earlier 2.x versions by returning an empty p5.Geometry when no contours are present.
  • Prevents crashes in sketches that include space characters (e.g. Typography 2.0 tutorial).

PR Checklist

  • npm run lint passes
  • Inline reference is included / updated
  • Unit tests are included / updated
Copy link

Collaborator

@perminder-17 perminder-17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@perminder-17 perminder-17 merged commit daac93f into processing:dev-2.0

Jan 20, 2026

2 checks passed

@ksen0 ksen0 added this to the 2.3 milestone

Feb 11, 2026

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

Reviewers

@perminder-17 perminder-17 perminder-17 approved these changes

Assignees

No one assigned

Labels

None yet

Projects

Status: Completed

Milestone

2.3

Development

Successfully merging this pull request may close these issues.

3 participants

@skyash-dev @perminder-17 @ksen0