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.
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
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.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d131684a0f2f08f12497d2747084bf5a8200e6beb6383d8ebccc82d5c5eba27
|
|
| MD5 |
ea6827c99c97d6a803bfc434c9eb2efe
|
|
| BLAKE2b-256 |
7b1caa3d83cea10d4631604088008a8680ef4a535bd571846c5b3293b8a8b7a5
|
File details
Details for the file textual_englyph-0.4.1-py3-none-any.whl.
File metadata
- Download URL: textual_englyph-0.4.1-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 |
fb63eff276e2814b385645c89dae05797d034fb2c54d5b9db9258e8f512a7423
|
|
| MD5 |
c101bb89e55e04c9ae30d1b6d7c0a245
|
|
| BLAKE2b-256 |
fb251444c7418f8280c6725e4c5a092189ef3ce10bdeded8b6899406f436b154
|