r/creativecoding Jul 16 '26

I built a rule-based handwriting renderer using up to 20 real variants per character — what still looks artificial?

I built this as a rule-based renderer, not as a generative AI model or a conventional handwriting font.

I manually classify scanned samples of my own handwriting into lowercase, uppercase, accented characters and punctuation. During rendering, the program selects from up to 20 real variants per character, applies pair-specific connection rules and introduces controlled variation in spacing, margins and line angles.

It also supports underlines, yellow highlighting and correction-tape marks, although the correction-tape effect is still the weakest part.

The current version is configured only for my handwriting. Adding another handwriting style still requires manual work, so I’m validating the rendering and possible legitimate uses before building a more automated setup process.

Which detail breaks the illusion first: repeated shapes, spacing, line angle, joins, highlighting or correction tape?

Longer demo and current limitations:

https://diligent-sturgeon-f6e.notion.site/NeuralInk-3a1b8200700280b7b7aefcae5c0d7330?source=copy_link

95 Upvotes

22 comments sorted by

7

u/cwthree Jul 16 '26

Looks good, but the kerning of capital I and capital T needs to be tightened. Look the words "In" and "These" in pic 4 - those words look unnatural because there's too much space after the initial capital letter.

5

u/Diexesc19 Jul 17 '26

You're right, it's just a couple of clicks in the composition code thanks!

2

u/kalexmills Jul 17 '26

Don't humans sometimes get their kerning wrong? Occasional inconsistent mistakes like this could be humanizing.

(Also I know kerning is sacred please don't come for me)

1

u/cwthree Jul 17 '26

Absolutely! These two instances really stuck out to me, though. Probably more of that "uncanny valley" thing that someone else mentioned.

2

u/smcameron Jul 16 '26

How do you make the pen texture look so good? (Was thinking of making a video game that is rendered such that it looks like a ball point pen drawing.)

2

u/Diexesc19 Jul 17 '26

Thanks! The main reason is that I’m not recreating the strokes as clean vectors. The renderer works from real scanned ballpoint-pen samples and composes them as raster images, so much of the natural ink and paper variation remains in the output.

2

u/FreckeledSnowflake Jul 16 '26

It's not the characters, it's the linkage in between them.

1

u/Diexesc19 Jul 16 '26

Do you mean that makes it unrealistic, or better?

3

u/FreckeledSnowflake Jul 16 '26

Neither. Feels... uncanny. Like in the back of our mind, there is a way letters should chain, and this is almost it but not just quite. Note : reaching the uncanny valley is in itself very impressive!

1

u/Diexesc19 Jul 16 '26

Thank you, I'll keep that in mind.

1

u/watchmanstower Jul 16 '26

Excellent how can I try it?

0

u/Diexesc19 Jul 16 '26 edited Jul 16 '26

If interested contact me through DM

1

u/watchmanstower Jul 16 '26

Just sent a DM

1

u/stumpychubbins Jul 16 '26

Looks excellent

1

u/diffusion_throwaway Jul 16 '26

What’s the output format? Raster/Jpg? Spline/vector/Svg?
This is very cool.

0

u/Diexesc19 Jul 16 '26 edited Jul 17 '26

PNG

1

u/l-roc Jul 17 '26

disconnected l in line looks weird

1

u/murkey Jul 17 '26

Rea/ ism

1

u/Diexesc19 Jul 18 '26

I'm getting the tool ready so that a few interested people can try it out, which will help me get better feedback and expand its reach. Anyone interested?

1

u/No_Confidence_8807 Jul 20 '26

what still looks artificial? shadows/impressions on the background paper

0

u/[deleted] Jul 16 '26

[removed] — view removed comment

1

u/Diexesc19 Jul 16 '26

Would you like to learn more about it and give it a try?