pub struct EvaluatedText {Show 16 fields
pub content: TextContent,
pub font_family: Option<String>,
pub font_size: f32,
pub fill: Paint,
pub line_height: f32,
pub letter_spacing: f32,
pub font_weight: u16,
pub text_align: TextAlign,
pub strokes: Vec<TextStroke>,
pub shadows: Vec<TextShadow>,
pub animators: Vec<SampledAnimator>,
pub animator_grouping: AnimatorGrouping,
pub animator_pivot: Vec2,
pub advance_headroom: f32,
pub font_size_fit: Option<FontSizeFit>,
pub line_clamp: Option<LineClamp>,
}Expand description
A text node’s sampled text and the style it inherits.
Fields§
§content: TextContentThe text, a string or runs; 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.
fill: PaintWhat paints the glyphs, a gradient over the text’s layout box.
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.
strokes: Vec<TextStroke>Bands around the glyphs, innermost first.
shadows: Vec<TextShadow>Shadows of the glyphs and strokes, the first on top.
animators: Vec<SampledAnimator>The node’s text animators at the layout’s picture time.
animator_grouping: AnimatorGroupingThe units its animators scale and turn about one pivot.
animator_pivot: Vec2Where in each group’s box the pivot lies.
advance_headroom: f32The most its animators can widen an advance (crate::advance_headroom); it wraps at
its content width over this.
font_size_fit: Option<FontSizeFit>The font sizes it is fitted between, fractions of the picture’s shorter side.
line_clamp: Option<LineClamp>Where its lines are cut.