pub struct Text {
pub id: String,
pub transform: Transform,
pub rendering_mode: TextRendering,
pub positions: Vec<CharacterPosition>,
pub rotate: Vec<f64>,
pub writing_mode: WritingMode,
pub chunks: Vec<TextChunk>,
}
Expand description
A text element.
text
element in SVG.
Fields§
§id: String
Element’s ID.
Taken from the SVG itself. Isn’t automatically generated. Can be empty.
transform: Transform
Element transform.
rendering_mode: TextRendering
Rendering mode.
text-rendering
in SVG.
positions: Vec<CharacterPosition>
A list of character positions.
One position for each Unicode codepoint. Aka char
in Rust and not UTF-8 byte.
rotate: Vec<f64>
A list of rotation angles.
One angle for each Unicode codepoint. Aka char
in Rust and not UTF-8 byte.
writing_mode: WritingMode
A writing mode.
chunks: Vec<TextChunk>
A list of text chunks.