Skip to main content

unicode-text-styles

120 Unicode "fancy text" styles — 𝐛𝐨𝐥𝐝, 𝓼𝓬𝓻𝓲𝓹𝓽, Ⓑⓤⓑⓑⓛⓔ, 𝔤𝔬𝔱𝔥𝔦𝔠, ꜱᴍᴀʟʟ ᴄᴀᴘꜱ, ʇxǝʇ uʍop ǝpᴉsdn, zalgo, lookalike scripts, braille, morse — plus defancify() to turn them back into plain text. The same engine as fontvibe.ai/tools/fancy-font-generator, byte for byte, and identical to the npm package of the same name. Pure Python, no dependencies.

pip install unicode-text-styles
from unicode_text_styles import transform, transform_all, defancify

transform("Hello World", "math_bold")           # 𝐇𝐞𝐥𝐥𝐨 𝐖𝐨𝐫𝐥𝐝
transform("Top 10", "circled")                  # Ⓣⓞⓟ ⑩
transform("Hello", "math_bold+strikethrough")   # chain with "+"
transform_all("Hello")                          # [{key, label, category, text}, …] × 120
defancify("𝐇𝐞𝐥𝐥𝐨 🅦🅞🅡🅛🅓")                       # Hello WORLD

From the shell:

python -m unicode_text_styles "Hello World"             # every style
python -m unicode_text_styles --style math_fraktur Hi
python -m unicode_text_styles --defancify "𝐇𝐞𝐥𝐥𝐨"

API

transform(text, key) One style. Unmapped characters pass through. Raises KeyError on an unknown key.
transform_all(text, category=None) Every style, in fontvibe.ai's order.
defancify(text) Styled characters → plain ASCII; strips the combining marks the styles add.
get_style(key) The style's metadata and steps.
styles, keys, categories Metadata: label, category, category labels in en/es/pt/de/ja/zh (style names are English only), unicode_age.

Rendering varies by device and font — preview before you post. Unicode doesn't have every letter in every style (there's no superscript q); missing ones pass through unchanged. defancify also folds real letters of other scripts that lookalike styles borrow (Greek α → a), and can't undo upside-down order. Details, limits and the language-neutral data files: the repository.

License and attribution

Code MIT; the style tables bundled in data/ are CC BY 4.0. If you ship them, please credit:

Text styles from <a href="https://fontvibe.ai/tools/fancy-font-generator">FontVibe</a> ·
<a href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>

rel="nofollow" is fine. Plain text works too: Text styles from FontVibe — https://fontvibe.ai/tools/fancy-font-generator — CC BY 4.0. Please link the site rather than only the repo — it's where your users can actually use them.

Metadata

Release files for unicode-text-styles 1.0.0

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

Source distribution (sdist)

Source distribution for unicode-text-styles 1.0.0
File Size Uploaded Provenance Actions
unicode_text_styles-1.0.0.tar.gz 37.5 kB Without provenance Details for unicode_text_styles-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for unicode-text-styles 1.0.0
File Interpreter ABI Platform Actions
unicode_text_styles-1.0.0-py3-none-any.whl Python 3 none any Details for unicode_text_styles-1.0.0-py3-none-any.whl

Total release size: 75.4 kB

Release files / unicode_text_styles-1.0.0.tar.gz

Download URL unicode_text_styles-1.0.0.tar.gz
Size 37.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5e4f2a24a176b58364bab73b77f6e463367175053d2f3dfc82b23a35d52bb1b9
BLAKE2b-256 checksum
How to use checksums
cbac93e642dabfded331b03efe4d5c097da06f93af62f17a91017bb5c22a6b4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Release files / unicode_text_styles-1.0.0-py3-none-any.whl

Download URL unicode_text_styles-1.0.0-py3-none-any.whl
Size 37.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7d65089f1afb844749380654d9808637542622ce9bb41d3c180b635b64896a09
BLAKE2b-256 checksum
How to use checksums
9b4b587212d8c1d22272c46480a74e95f7f054e7b387c81132d882e06bd45052
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Security for unicode-text-styles 1.0.0

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

1.0.0 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