Turns text into ascii art
Project description
texttofont
Take a .ttf file and generate ascii art using the font for text. Use any symbols for generating the font + fun mode where each character is built up of itself in ascii art
Instructions
Run pip install text-to-font
The following code prints the ascii art for "Hello!" in string format
from text_to_font.transformations import word_to_ascii
print(word_to_ascii(
phrase='Hello!',
font_size=12,
kerning=1,
font_path='~/fonts/somefont.ttf' # defaults to built-in 'slkscr.ttf' (SilkScreen) font
))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
text-to-font-0.1.1.tar.gz
(2.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file text-to-font-0.1.1.tar.gz.
File metadata
- Download URL: text-to-font-0.1.1.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1116a9095e37caeb1c2f31b28ad13b506264743b39e9e8a9fe67447be851e5b6
|
|
| MD5 |
20130317288fc6277a53a133184abef0
|
|
| BLAKE2b-256 |
de0c5b97406a1566ff8610f102c738b062d014d4a9702a2a9bdc64bccec39beb
|
File details
Details for the file text_to_font-0.1.1-py3-none-any.whl.
File metadata
- Download URL: text_to_font-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d106c2d96fa4891f1cd5a18e1767b44618575a12af44c6a947a6ea7e45447f69
|
|
| MD5 |
5bbb753824ab0172c0b9edbd22eb0499
|
|
| BLAKE2b-256 |
ae551971535ec28f582269ba732338da6abf2adf4145eedb90b354febf4abbbf
|