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.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Text
impl !Send for Text
impl !Sync for Text
impl Unpin for Text
impl !UnwindSafe for Text
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more