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: StringElement’s ID.
Taken from the SVG itself. Isn’t automatically generated. Can be empty.
transform: TransformElement transform.
rendering_mode: TextRenderingRendering 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: WritingModeA writing mode.
chunks: Vec<TextChunk>A list of text chunks.