A Textual utility widget set to generate terminal images and styled, scalable text.
Project description
Textual-EnGlyph
A large font and image 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 import the text widget
uv pip install textual-englyph
Use as a module in your textual python app. Save the following simple example as text.py
from textual.app import App, ComposeResult
from textual_englyph import EnGlyphText
class Test(App):
"""Test console markup styling the englyph text use case"""
def compose(self) -> ComposeResult:
yield EnGlyphText("From Englyph, Hello [violet]Textual!", text_size="small")
if __name__ == "__main__":
Test().run()
and run it (use ctrl-q to exit)
uv run text.py
See Overview.md for more information regarding EnGlyph capabilities.
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.5.3.tar.gz.
File metadata
- Download URL: textual_englyph-0.5.3.tar.gz
- Upload date:
- Size: 2.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.29
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9ca164859d5b80181471812b44c5c998323dcff9952ec32322f713e1e66b94d
|
|
| MD5 |
9c072d77eafe9241114d1d8cfc610a16
|
|
| BLAKE2b-256 |
0639dee800566f236aba4a142d26d2b3dfcfe6b840e7b301657f8d0b85774ab9
|
File details
Details for the file textual_englyph-0.5.3-py3-none-any.whl.
File metadata
- Download URL: textual_englyph-0.5.3-py3-none-any.whl
- Upload date:
- Size: 163.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.29
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b3d9026238f9a2463dd01ba62a38aa88c2dbadf8be9e7761ee56fb2cbf849f6
|
|
| MD5 |
c7a26e75cba2c5f0d9ebd78250f3a007
|
|
| BLAKE2b-256 |
ed6fa366af81a6bc1aeb8acbc5a3292b46450c140461d8a00d99677486f320b8
|