Skip to main content

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


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)

Uploaded Source

Built Distribution

text_to_font-0.1.1-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page