Skip to main content
← Back to kicad-monkey Rust Docs kicad-monkey Rust Crate API Reference

layout_single_line_text_a0

Function layout_single_line_text_a0 

Source
pub fn layout_single_line_text_a0(
    font_bytes: &[u8],
    request: TextLayoutRequest<'_>,
) -> Result<TextContourOutput, TextContourError>
Expand description

Render one horizontal plain-text line with KiCad alignment, mirroring, and rotation order.

Left-to-right and right-to-left shaping are supported. Vertical shaping is rejected because its line metrics and alignment semantics are not yet implemented. The returned advance_x and advance_y remain the shaped run’s pre-layout local advance; only contour points receive the authored position, mirror, and rotation transforms.