DEV Community

Abhijeet Sharma
Abhijeet Sharma

Posted on

3 3

TEXT-TO-HANDWRITING USING PYTHON

Hello, guys in this post we are going to explore how to convert text into handwriting and how to save it in any format.

so let's start, we need to download one python module named "pywhatkit".

STEP 1: installation of module pywhatkit.
you just have to run this command in your system command prompt(or terminal).
Alt Text

STEP 2: Now after you have successfully installed this module in your system then you have to import it into your code.
Alt Text

STEP 3: Now it's time to use the method text_to_handwriting().
you have to pass 3 pieces of information (arguments) to this method:
1. Text you want to convert in handwriting.
2. path where you want to save this file.
3. color of the text in rgb format as tuple.

Alt Text

an important point to remember: you have to use a double forward slash or backward slash(\\ or //) according to your device while defining the path as you can see in the above picture.

And now you can check your directory which you passed as an argument in the method, you will get your file there.

Alt Text

Hope this post has helped you.
thankyou.

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (2)

Collapse
 
arwazkhan189 profile image
Arwaz Khan

Nice 🔥

Collapse
 
abhijeetsharma20 profile image
Abhijeet Sharma

Thanks @arwazkhan189

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay