pub struct ShapedText {
pub lines: Vec<ShapedLine>,
pub left: f32,
pub top: f32,
pub right: f32,
pub bottom: f32,
pub text: String,
pub writing_mode: SymbolWritingMode,
}Expand description
Result of text shaping: positioned lines with a bounding box.
Fields§
§lines: Vec<ShapedLine>Positioned lines of glyphs.
left: f32Bounding box: left edge in layout units.
top: f32Bounding box: top edge in layout units.
right: f32Bounding box: right edge in layout units.
bottom: f32Bounding box: bottom edge in layout units.
text: StringOriginal text (post-transform).
writing_mode: SymbolWritingModeWriting mode used for shaping.
Implementations§
Trait Implementations§
Source§impl Clone for ShapedText
impl Clone for ShapedText
Source§fn clone(&self) -> ShapedText
fn clone(&self) -> ShapedText
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShapedText
impl Debug for ShapedText
Source§impl PartialEq for ShapedText
impl PartialEq for ShapedText
impl StructuralPartialEq for ShapedText
Auto Trait Implementations§
impl Freeze for ShapedText
impl RefUnwindSafe for ShapedText
impl Send for ShapedText
impl Sync for ShapedText
impl Unpin for ShapedText
impl UnsafeUnpin for ShapedText
impl UnwindSafe for ShapedText
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