pub struct Text {
pub id: String,
pub transform: Transform,
pub rendering_mode: TextRendering,
pub positions: Vec<CharacterPosition>,
pub rotate: Vec<f32>,
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.
rotate: Vec<f32>A list of rotation angles.
One angle for each Unicode codepoint. Aka char in Rust.
writing_mode: WritingModeA 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