Convert text to custom handwriting
Project description
Handwrite - Type in your Handwriting!
Ever had those long-winded assignments, that the teacher always wants handwritten? Is your written work messy, cos you think faster than you can write? Now, you can finish them with the ease of typing in your own font!
Handwrite makes typing written assignments efficient, convenient and authentic.
Handwrite generates a custom font based on your handwriting sample, which can easily be used in text editors and word processors like Microsoft Word & Libre Office Word!
Handwrite is also helpful for those with dysgraphia.
Installing
Usage
Creating your Handwritten Sample
-
Take a printout of the sample form.
-
Fill the form using the image below as a reference.
-
Scan the filled form using a scanner, or Adobe Scan in your phone.
-
Save the
.jpg
image in your system.
Your form should look like this:
Creating your font
-
Make sure you have installed
handwrite
,potrace
&fontforge
. -
In a terminal type
handwrite (PATH_TO_IMAGE) (OUTPUT_DIRECTORY)
. (You can also typehandwrite -h
, to see all the arguments you can use). -
Your font will be created as
OUTPUT_DIRECTORY/OUTPUT_FONT_NAME.ttf
. Install the font in your system. -
Select your font in your word processor and get to work!
Here's the end result!
Development
Linux
-
Install Potrace using apt
sudo apt-get install potrace
-
Install fontforge using apt
sudo apt-get install fontforge
-
Clone the repository or your fork
git clone https://github.com/cod-ed/handwrite
-
(Optional) Make a virtual environment and activate it
python -m venv .venv source .venv/bin/activate
-
In the project directory run:
pip install -e .
-
Make sure the tests run:
python setup.py test
You are ready to go!
Windows
-
Install Potrace and make sure it's in your PATH.
-
Install fontforge and make sure scripting is enabled.
-
Clone the repository or your fork
git clone https://github.com/cod-ed/handwrite
-
(Optional) Make a virtual environment and activate it
python -m venv .venv .venv\Scripts\activate
-
In the project directory run:
pip install -e .
-
Make sure the tests run:
python setup.py test
You are ready to go!
Credits and Reference
-
Potrace algorithm and package has been immensely helpful.
-
Fontforge for packaging and adjusting font parameters.
-
Sacha Chua's project proved to be a great reference for fontforge python.
-
All credit for svgtottf converter goes to this project by pteromys. We made a quite a lot of modifications of our own, but the base script idea was derived from here.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file handwrite-0.1.1.tar.gz
.
File metadata
- Download URL: handwrite-0.1.1.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.1 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3bf4c2da342759f1166381efe2d9a4c70d070e483c74f9050dad3a6caa03324 |
|
MD5 | 93855cc5dd6ce03d9396e0283f12b99a |
|
BLAKE2b-256 | 45e379ed919f667e1854a9cdfbc9f4b239197c3cb464c899ff0735eb7d78befc |
File details
Details for the file handwrite-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: handwrite-0.1.1-py3-none-any.whl
- Upload date:
- Size: 13.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.1 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80dc79bf836e4c9b896731eda56d81669c00ec89146ea04f42e5500e0c645121 |
|
MD5 | e49f7859d5fb397e1225ee7601a811ed |
|
BLAKE2b-256 | e3e7644dd4075b84ad572714a388b940eeaf05eea6429a72072c5b46b622e9a3 |