Expand description
Linra rendering: shape and render in a single pass
For maximum performance, some platform APIs can shape AND render text in a single operation. This module provides the trait and types for such linra backends.
§Why Linra Rendering?
Traditional pipeline: Shape → Extract Glyphs → Render Each Glyph Linra pipeline: Shape + Render in One Call
On macOS, CoreText’s CTLineDraw shapes and renders atomically. On Windows, DirectWrite’s DrawTextLayout does the same.
The linra approach:
- Eliminates glyph extraction overhead
- Allows the OS to optimize internally
- Can leverage hardware acceleration
Structs§
- Linra
Render Params - Combined parameters for linra shape+render operations
Traits§
- Linra
Renderer - Linra text renderer: shapes AND renders in a single operation