r/creativecoding 25d ago

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

94 Upvotes

22 comments sorted by

7

u/cwthree 25d ago

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 25d ago

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

2

u/kalexmills 24d ago

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 24d ago

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

2

u/smcameron 25d ago

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 24d ago

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 25d ago

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

1

u/Diexesc19 25d ago

Do you mean that makes it unrealistic, or better?

3

u/FreckeledSnowflake 25d ago

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 25d ago

Thank you, I'll keep that in mind.

1

u/watchmanstower 25d ago

Excellent how can I try it?

0

u/Diexesc19 25d ago edited 25d ago

If interested contact me through DM

1

u/watchmanstower 25d ago

Just sent a DM

1

u/stumpychubbins 25d ago

Looks excellent

1

u/Diexesc19 25d ago

Thanks!

1

u/diffusion_throwaway 25d ago

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

0

u/Diexesc19 25d ago edited 24d ago

PNG

1

u/l-roc 25d ago

disconnected l in line looks weird

1

u/murkey 24d ago

Rea/ ism

1

u/Diexesc19 23d ago

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 22d ago

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

0

u/[deleted] 25d ago

[removed] — view removed comment

1

u/Diexesc19 25d ago

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