A large font rendering widget for the Textual platform.
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.
- iTerm2 (OS X)
- xfce4-Terminal (Linux)
- Terminal (Windows)
- ...and many more.
- 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
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