Skip to main content

A Textual widget to generate stylized large text.

Project description

Textual-EnGlyph

A large font rendering widget for the Textual platform.

Requirements

For this to look good you will need a terminal emulator that supports Unicode and a font that has glyphs for the Symbols for Legacy Computing block defined by Unicode version 16.0.

Known terminals

  • iTerm2 (OS X)
  • xfce4-Terminal (Linux)
  • Terminal (Windows)
  • ...and many more.

Known fonts

Howto

This widget library is available as a python PyPi library.

This HowTo recommends uv to manage your python environment, see https://docs.astral.sh/uv/guides/ for using uv.

Install and run the demo...

uv pip install textual-englyph
englyph_demo

or, use as a module in your textual python app. Save the following simple example as test.py

from textual.app import App, ComposeResult
from textual_englyph import EnGlyph

class Test(App):
    DEFAULT_CSS = """
    EnGlyph {
        color: green;
        text-style: underline;
        }
    """

    def compose(self) -> ComposeResult:
        yield EnGlyph("Hello Textual!")

if __name__ == "__main__":
    app = Test()
    app.run()

and run it (use ctrl-c to exit)

uv run test.py

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

textual_englyph-0.2.0.tar.gz (405.5 kB view details)

Uploaded Source

Built Distribution

textual_englyph-0.2.0-py3-none-any.whl (393.7 kB view details)

Uploaded Python 3

File details

Details for the file textual_englyph-0.2.0.tar.gz.

File metadata

  • Download URL: textual_englyph-0.2.0.tar.gz
  • Upload date:
  • Size: 405.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.24

File hashes

Hashes for textual_englyph-0.2.0.tar.gz
Algorithm Hash digest
SHA256 225856000a58917b117703c6cd324d9f4f8310ec657209d513c3c0ef1ad95577
MD5 8eb51ca3ad41425aba6e958dd7548108
BLAKE2b-256 bec3684a4514a4fce4e6196ef618ea471753b0a215103cb5ca95b93a517d9ad7

See more details on using hashes here.

File details

Details for the file textual_englyph-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for textual_englyph-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ddb6c0888678ccec524659911fc74c78a716cc1d4429f03e5709c0ec83a703e3
MD5 56c6f33c7ed40cf45cb126e7e0eabdf4
BLAKE2b-256 e2123258a138ebce7030cc366a0a2c9c2c2971ac81b6e482c091a22a0813adf9

See more details on using hashes here.

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