Skip to content

fix textToModel regression for space characters#8429

Merged
perminder-17 merged 2 commits intoprocessing:dev-2.0from
skyash-dev:fix-textToModel-empty-glyph
Jan 20, 2026
Merged

fix textToModel regression for space characters#8429
perminder-17 merged 2 commits intoprocessing:dev-2.0from
skyash-dev:fix-textToModel-empty-glyph

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

Labels

None yet

Projects

Status: Completed

Development

Successfully merging this pull request may close these issues.

3 participants