Skip to main content

Module linra

Module linra 

Source
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§

LinraRenderParams
Combined parameters for linra shape+render operations

Traits§

LinraRenderer
Linra text renderer: shapes AND renders in a single operation