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.

Run the default text use case... 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 EnGlyphText

class Test(App):
    '''Test CSS and console markup styling the basic englyph text use case'''
    DEFAULT_CSS = """
    EnGlyphText {
        color: green;
        text-style: underline;
        }
    """
    def compose(self) -> ComposeResult:
        yield EnGlyphText("Hello [blue]Textual!")

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

and run it (use ctrl-q to exit)

uv run --with textual --with textual_englyph 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.1.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.1-py3-none-any.whl (387.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: textual_englyph-0.4.1.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.1.tar.gz
Algorithm Hash digest
SHA256 9d131684a0f2f08f12497d2747084bf5a8200e6beb6383d8ebccc82d5c5eba27
MD5 ea6827c99c97d6a803bfc434c9eb2efe
BLAKE2b-256 7b1caa3d83cea10d4631604088008a8680ef4a535bd571846c5b3293b8a8b7a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for textual_englyph-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fb63eff276e2814b385645c89dae05797d034fb2c54d5b9db9258e8f512a7423
MD5 c101bb89e55e04c9ae30d1b6d7c0a245
BLAKE2b-256 fb251444c7418f8280c6725e4c5a092189ef3ce10bdeded8b6899406f436b154

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