text_anchor_offset

Function text_anchor_offset 

Source
fn text_anchor_offset(
    anchor: TextAnchor,
    direction: Direction,
    writing_mode: WritingMode,
    chunk_bounds: Rect,
) -> (f64, f64)
Expand description

Computes the (x, y) offsets to be applied to spans after applying the text-anchor property (start, middle, end).