Skip to main content

text_element

Function text_element 

Source
fn text_element(row: &TextRow, font: &Font, color: Color, angle: Angle) -> Blob
Expand description

One row as a <text> at its pen, turned about it by angle. Written by hand because the svg crate breaks an element’s content onto lines of its own, which xml:space="preserve" would set as spaces.