Skip to main content

A Textual utility/widget to generate terminal images and styled, scalable 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 terminal 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.4.0.tar.gz (3.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

textual_englyph-0.4.0-py3-none-any.whl (387.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: textual_englyph-0.4.0.tar.gz
  • Upload date:
  • Size: 3.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.3

File hashes

Hashes for textual_englyph-0.4.0.tar.gz
Algorithm Hash digest
SHA256 6086885eea9c4763098d5d0c96926109a46212efa2d13b393c8345695a70b3fc
MD5 448c78a52dc4de47ffaf1955636fd18b
BLAKE2b-256 39302344ad92d9512a4c4ef6870e3d86438c00799fae94c8b2a291097d512bc2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for textual_englyph-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c3a15ce92232b6bec3a2e06531c9701e852d52f81e3b3ea356b54863f75f4ec3
MD5 87098533c8a1677d361d08020a6b7e03
BLAKE2b-256 9e1bcde320654440ad5f043df80812366e4ad9083c8d95a0ae9a0d4c2d379c6a

See more details on using hashes here.

Supported by

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