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.1.2.tar.gz (397.6 kB view details)

Uploaded Source

Built Distribution

textual_englyph-0.1.2-py3-none-any.whl (390.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for textual_englyph-0.1.2.tar.gz
Algorithm Hash digest
SHA256 4219aa5b54f79c4076c81d0ef2176e0c461ea713ae7953ef093d0db796c78499
MD5 d5187577ea41e22d3ef023c30806fb89
BLAKE2b-256 1a679acff54da2166679cd8843598202475ea1871b943736a42036ff09d28a65

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for textual_englyph-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fa2f2d6667bc02c676ffbfab09ac189f35abdc263a358481b15c76553ca40e98
MD5 c48e942254810c2a8c6e784c55c11c12
BLAKE2b-256 909c9878834caf1289d578d47b4d83856482aaaabef3fa7bab2928f0d04ac03f

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