Function rsvg::text::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).