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 hashes)
Built Distribution
Close
Hashes for text_to_font-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d106c2d96fa4891f1cd5a18e1767b44618575a12af44c6a947a6ea7e45447f69 |
|
MD5 | 5bbb753824ab0172c0b9edbd22eb0499 |
|
BLAKE2b-256 | ae551971535ec28f582269ba732338da6abf2adf4145eedb90b354febf4abbbf |