Directional Text

john's Avatar

john

07 Jul, 2017 09:24 PM

Text that follows the rim or spokes of a wheel is sometimes upside-down, making it hard to read.

The two subnetworks in this demo, true_arc and true_spoke, solve this problem, creating text that is always right-side-up and easy to read regardless of where it lands.

True_arc is for text placed on the rim of a wheel. Given the position and radius of your wheel, and the angle where you want the text to start, it creates an arc path that causes text to flow clockwise when it lands above the horizon, or counter-clockwise when it lands below the horizon. Just feed it into your text on path node.

True_spoke is for text placed on the spokes of the wheel. Create your text first using a text on path node and then feed that into true_spoke. If the text is flowing in an easterly direction it leaves it alone; if it is flowing in a westerly direction it rotates the text so that it will read correctly.

NOTE: True_spoke tries to guess the direction of the text path by looking at the first and last points, which will vary slightly depending on the font and how each character is drawn. When the angle is close to due north or due south the direction can flip back and forth in subsequent spokes if spokes are close together. If this happens, replace true_spoke with the flip_spoke subnetwork (inside true_spoke). Flip_spoke requires the angle, so you will have to provide that yourself.

The attached demo shows both cases with two instances of text on the rim and two instances of text on the spokes.

Enjoy!

John

Reply to this discussion

Internal reply

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

Attaching KB article:

»

Already uploaded files

  • directional_text.zip 2.91 KB
  • directional_text_screenshot.png 405 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

 

20 Sep, 2018 05:09 PM
14 Sep, 2018 01:53 PM
11 Sep, 2018 08:23 AM
10 Sep, 2018 02:05 AM
07 Sep, 2018 01:57 PM
26 Aug, 2018 04:34 AM