pub struct EvaluatedText {
pub content: String,
pub font_family: Option<String>,
pub font_size: f32,
pub color: Rgba,
pub line_height: f32,
pub letter_spacing: f32,
pub font_weight: u16,
pub text_align: TextAlign,
pub outline: Option<TextOutline>,
}Expand description
A text node’s sampled text and the style it inherits.
Fields§
§content: StringThe text; may be empty.
font_family: Option<String>The family it draws in.
font_size: f32Font size, a fraction of the picture’s shorter side; positive.
color: RgbaText color.
line_height: f32Baseline-to-baseline distance in font sizes.
letter_spacing: f32Space after each character, a fraction of the font size.
font_weight: u16The weight its faces are matched by.
text_align: TextAlignHow lines align in the content width.
outline: Option<TextOutline>A band around the glyphs.
Trait Implementations§
Source§impl Clone for EvaluatedText
impl Clone for EvaluatedText
Source§impl Debug for EvaluatedText
impl Debug for EvaluatedText
Source§impl PartialEq for EvaluatedText
impl PartialEq for EvaluatedText
impl StructuralPartialEq for EvaluatedText
Auto Trait Implementations§
impl Freeze for EvaluatedText
impl RefUnwindSafe for EvaluatedText
impl Send for EvaluatedText
impl Sync for EvaluatedText
impl Unpin for EvaluatedText
impl UnsafeUnpin for EvaluatedText
impl UnwindSafe for EvaluatedText
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