The new NodeBox forum is live! Everything from support.nodebox.net moved here: sign in with the same email to pick up your old posts. Something not working? Write to forum-support@nodebox.net.

Show your WorkFrom the old forum

Leading Added to Charpath and Wordpath

No replies yet

  1. 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!

    Copy link

Know something that helps?

Sign in with your email address to reply. No password needed.

Sign in to reply