Leading Added to Charpath and Wordpath
I have added a leading (line height) control to my charpath and wordpath nodes.
Charpath and wordpath work just like textpath except that instead of returning a single path, they return multiple paths: one for each character or one for each word. This allows you to easily color characters or words independently and perform other manipulations.
Now these two nodes also allow you to adjust the leading. If you leave leading at 0, the output will look just like textpath; as you adjust the width your text will break into multiple lines. If you then change the leading, the vertical space between lines will increase or decrease by as many pixels as you want.
As before, both nodes also work with my line_break node, so you can define line breaks using that instead of using the width control.
The demo allows you to play with both nodes. Adjust the font size, width, leading and other controls to see what happens. The three colors applied to both nodes show you that charpath returns individual characters while wordpath returns individual words.
Enjoy!
-
leading_demo.png
445 KB
- charpath_wordpath_demo.ndbx.zip 24.3 KB
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