saurabhdaware / text-to-handwriting

So your teacher asked you to upload written assignments? Hate writing assigments? This tool will help you convert your text to handwriting xD
https://saurabhdaware.github.io/text-to-handwriting/
MIT License
4.71k stars 1.13k forks source link

Make the font renderer randomise warp of each letter #90

Open souranild opened 4 years ago

souranild commented 4 years ago

if each letter looks slightly different, it will make it look better. maybe some photo editing library will let you warp each letter before rendering?

saurabhdaware commented 4 years ago

This will look great but it will be difficult to implement in a way that the text won't look weird. Keeping this open. Lets see what we can do

take2rohit commented 4 years ago

can u try atleast slight random warping of letters added with slight noise (salt and pepper will do ) . This will break the symmetry of letters

grunwalski commented 4 years ago

If randomising warp is too complicated, I would recommend two things:

  1. Vary the point where each line begin randomly for just a tiny bit. Just to break up the clean vertical "starting line". This will make a huge difference. And if you keep the offset small, it won't look weird.

  2. Can you set the position for ever letter separatley? Make them not appear on a perfect horizontal line, but let it be a very gentle wave line. As in 1., not much.

This would do a LOT to make it appear more natural.

saurabhdaware commented 3 years ago

Vary the point where each line begin randomly for just a tiny bit. Just to break up the clean vertical "starting line". This will make a huge difference. And if you keep the offset small, it won't look weird.

This sounds like a great idea! I will have to see if it is possible.

The 2nd one won't really be possible since it will require changing styles of every letter which will be complicated