forked from genewildish/Mainline
Major changes: - Pipeline architecture with capability-based dependency resolution - Effects plugin system with performance monitoring - Display abstraction with multiple backends (terminal, null, websocket) - Camera system for viewport scrolling - Sensor framework for real-time input - Command-and-control system via ntfy - WebSocket display backend for browser clients - Comprehensive test suite and documentation Issue #48: ADR for preset scripting language included This commit consolidates 110 individual commits into a single feature integration that can be reviewed and tested before further refinement.
38 lines
1.1 KiB
Python
38 lines
1.1 KiB
Python
"""Modern block rendering system - OTF font to terminal half-block conversion.
|
|
|
|
This module provides the core rendering capabilities for big block letters
|
|
and styled text output using PIL fonts and ANSI terminal rendering.
|
|
|
|
Exports:
|
|
- make_block: Render a headline into a content block with color
|
|
- big_wrap: Word-wrap text and render with OTF font
|
|
- render_line: Render a line of text as terminal rows using half-blocks
|
|
- font_for_lang: Get appropriate font for a language
|
|
- clear_font_cache: Reset cached font objects
|
|
- lr_gradient: Color block characters with left-to-right gradient
|
|
- lr_gradient_opposite: Complementary gradient coloring
|
|
"""
|
|
|
|
from engine.render.blocks import (
|
|
big_wrap,
|
|
clear_font_cache,
|
|
font_for_lang,
|
|
list_font_faces,
|
|
load_font_face,
|
|
make_block,
|
|
render_line,
|
|
)
|
|
from engine.render.gradient import lr_gradient, lr_gradient_opposite
|
|
|
|
__all__ = [
|
|
"big_wrap",
|
|
"clear_font_cache",
|
|
"font_for_lang",
|
|
"list_font_faces",
|
|
"load_font_face",
|
|
"lr_gradient",
|
|
"lr_gradient_opposite",
|
|
"make_block",
|
|
"render_line",
|
|
]
|