Skip to main content

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
))

Metadata

Release files for text-to-font 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for text-to-font 0.1.1
File Size Uploaded Provenance Actions
text-to-font-0.1.1.tar.gz 2.8 kB Without provenance Details for text-to-font-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for text-to-font 0.1.1
File Interpreter ABI Platform Actions
text_to_font-0.1.1-py3-none-any.whl Python 3 none any Details for text_to_font-0.1.1-py3-none-any.whl

Total release size: 6.0 kB

Release files / text-to-font-0.1.1.tar.gz

Download URL text-to-font-0.1.1.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1116a9095e37caeb1c2f31b28ad13b506264743b39e9e8a9fe67447be851e5b6
BLAKE2b-256 checksum
How to use checksums
de0c5b97406a1566ff8610f102c738b062d014d4a9702a2a9bdc64bccec39beb
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / text_to_font-0.1.1-py3-none-any.whl

Download URL text_to_font-0.1.1-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d106c2d96fa4891f1cd5a18e1767b44618575a12af44c6a947a6ea7e45447f69
BLAKE2b-256 checksum
How to use checksums
ae551971535ec28f582269ba732338da6abf2adf4145eedb90b354febf4abbbf
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for text-to-font 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page