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
- Cascadia Code https://github.com/microsoft/cascadia-code/, v 2404.3 or later
- GNU Unifont http://savannah.gnu.org/projects/unifont/, v 16.0 or later
- Iosevka https://typeof.net/Iosevka/, v 13.9.1 or later
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6086885eea9c4763098d5d0c96926109a46212efa2d13b393c8345695a70b3fc
|
|
| MD5 |
448c78a52dc4de47ffaf1955636fd18b
|
|
| BLAKE2b-256 |
39302344ad92d9512a4c4ef6870e3d86438c00799fae94c8b2a291097d512bc2
|
File details
Details for the file textual_englyph-0.4.0-py3-none-any.whl.
File metadata
- Download URL: textual_englyph-0.4.0-py3-none-any.whl
- Upload date:
- Size: 387.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3a15ce92232b6bec3a2e06531c9701e852d52f81e3b3ea356b54863f75f4ec3
|
|
| MD5 |
87098533c8a1677d361d08020a6b7e03
|
|
| BLAKE2b-256 |
9e1bcde320654440ad5f043df80812366e4ad9083c8d95a0ae9a0d4c2d379c6a
|