Simple Stroke Text Script v2 2026

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
heyvern
Posts: 7073
Joined: Thu Sep 01, 2005 8:49 pm

Simple Stroke Text Script v2 2026

Post by heyvern »

Simple Stroke Text v2.0 moho 14
(zip contains two different install folders using the moho script installer. You can install it in the Scripts/Menu/Draw or in Scripts/Tools based on which folder you load.)

About 15 years ago, I created a Simple Stroke Text script. It created single-stroke vector text from entered text or from external text files.
I created it for a super low point count vector text for bone or layer labeling or instructions. Even though it's not as useful since we have live text layers, I decided to update it. I still use it.

The font is very simple, very basic. No curves, just minimal point count. Between 2 and 10 points per character.
Since it's been such a long time and the original post had broken links, I can't really fix it. I decided to create a new post for it.
I fixed a bunch of problems with the letter shapes and updated all the punctuation. (The original only had a few)

New features:
-Kern Pairs -- text looks way better. Spacing is based on pairs of characters set in the script. More can be added or changed.
-Letter Spacing
-Word Spacing
-Curly Quotes
-All punctuation
(including dang freaking degree symbol)

I figured out the degree symbol using UTF-8 detection. Dang pain in the arse.
Something about LUA and double-byte characters? blech. It wasn't too hard, but bug testing was annoying.

The grid for making new fonts is straightforward. It matches the units in Moho. This made it so much easier to fix and create the characters.
This is the exact grid of units that is used in Moho for point locations. So each point of a letter is on an exact grid about 10 x 10.
So I drew on a grid in Moho and wrote another script to export the selected points' locations to paste into the text script.
If anyone is interested, I can provide the grid Moho file and the export script with instructions.

Some simple instructions
Settings are similar to those of other text apps. Letter and word spacing start at zero. You go positive for more, negative for less.
Curly quotes are pretty straightforward. With it unchecked, the quotes are straight. When checked, it keeps track of the quotes and uses the correct opening and closing quotes in the text.
You can paste short bits in the text box of the interface or you can check load text file to import a larger block of text that has returns for paragraphs etc.
I tried but it was a bit complicated to get the line enders from the built-in text box.

Image

Sample of render
Image

How it looks in Moho (fonts very simple)
Image
User avatar
Greenlaw
Posts: 10962
Joined: Mon Jun 19, 2006 9:45 am
Location: Los Angeles
Contact:

Re: Simple Stroke Text Script v2 2026

Post by Greenlaw »

This script looks very interesting, heyvern. I can see scenarios where I may need a lot of display text, and also want low overhead. I'll give it a try later today.

Thanks for sharing it!
Animations, Tutorials, and Cats (Oh, My!) Little Green Dog Channel on YouTube!

D.R. Greenlaw
Artist/Partner - Little Green Dog
Little Green Dog Channel | Greenlaw's Demo Reel Channel
User avatar
synthsin75
Posts: 10467
Joined: Mon Jan 14, 2008 2:20 pm
Location: Oklahoma
Contact:

Re: Simple Stroke Text Script v2 2026

Post by synthsin75 »

Nice. I remember your original script.
User avatar
Greenlaw
Posts: 10962
Joined: Mon Jun 19, 2006 9:45 am
Location: Los Angeles
Contact:

Re: Simple Stroke Text Script v2 2026

Post by Greenlaw »

This typeface is fun; it reminds me of vector graphics from the early days of arcade games, like Asteroids and Battlezone.
Animations, Tutorials, and Cats (Oh, My!) Little Green Dog Channel on YouTube!

D.R. Greenlaw
Artist/Partner - Little Green Dog
Little Green Dog Channel | Greenlaw's Demo Reel Channel
Post Reply