Charpath

john's Avatar

john

15 Jan, 2025 08:54 PM

I woke up this morning with an idea for how to do a node I've been wanting for YEARS.

Charpath works exactly like textpath with one difference: instead of returning a single path, it returns a list of paths, one for each character. AND NO EXTERNAL CODE MODULE IS REQUIRED!

Each character path is in the position it would have been as part of a textpath, and contains the same contours. Change the font, font size, alignment, position, or width and all the individual character paths will update accordingly.

Demo attached. I enter a simple phrase into charpath and then give each character a different color. Try that with textpath!

Enjoy!

  1. Support Staff 1 Posted by john on 21 Jan, 2025 09:43 AM

    john's Avatar

    UPDATE

    I have released an improved version of charpath that can handle text with line breaks.

    Details and a demo with the updated charpath node here:

    http://support.nodebox.net/discussions/show-your-work/859-line-brea...

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • charpath_screenshot.png 533 KB
  • char_path_demo.ndbx.zip 127 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

06 Feb, 2025 01:37 AM
04 Feb, 2025 06:32 AM
04 Feb, 2025 05:04 AM
30 Jan, 2025 09:31 AM
30 Jan, 2025 09:08 AM

 

30 Jan, 2025 08:40 AM
24 Jan, 2025 07:50 AM
22 Jan, 2025 11:42 PM
21 Jan, 2025 09:43 AM
21 Jan, 2025 09:41 AM
21 Jan, 2025 09:36 AM