pub struct TextStyle {
pub font: Option<FontHandle>,
pub font_families: Option<FontFamilyStack>,
pub font_size: f32,
pub line_height: f32,
pub color: Color,
pub weight: FontWeight,
pub style: FontStyle,
pub stretch: FontStretch,
pub features: FontFeatures,
}Fields§
§font: Option<FontHandle>§font_families: Option<FontFamilyStack>Theme or caller supplied family preferences used when font is not set.
font_size: f32§line_height: f32§color: Color§weight: FontWeightWeight axis / weight class (drives the variable wght axis and bold-face selection).
style: FontStyleSlant (italic / oblique face selection).
stretch: FontStretchWidth / stretch (condensed..expanded face selection).
features: FontFeaturesOpenType feature settings applied to this run.
Implementations§
Trait Implementations§
impl StructuralPartialEq for TextStyle
Auto Trait Implementations§
impl Freeze for TextStyle
impl RefUnwindSafe for TextStyle
impl Send for TextStyle
impl Sync for TextStyle
impl Unpin for TextStyle
impl UnsafeUnpin for TextStyle
impl UnwindSafe for TextStyle
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