pub struct Font {
pub weight: Option<Weight>,
pub style: Option<Style>,
pub underline: Option<bool>,
pub strike_out: Option<bool>,
pub size: Option<FontSize>,
pub capitalisation: Option<Capitalisation>,
pub families: Option<Vec<String>>,
pub letter_spacing: Option<isize>,
pub letter_spacing_type: Option<SpacingType>,
pub word_spacing: Option<isize>,
}
Fields§
§weight: Option<Weight>
§style: Option<Style>
§underline: Option<bool>
§strike_out: Option<bool>
§size: Option<FontSize>
§capitalisation: Option<Capitalisation>
§families: Option<Vec<String>>
§letter_spacing: Option<isize>
§letter_spacing_type: Option<SpacingType>
§word_spacing: Option<isize>
Sets the word spacing for the font to spacing. Word spacing changes the default spacing between individual words. A positive value increases the word spacing by a corresponding amount of pixels, while a negative value decreases the inter-word spacing accordingly.
Implementations§
Trait Implementations§
impl Eq for Font
impl StructuralPartialEq for Font
Auto Trait Implementations§
impl Freeze for Font
impl RefUnwindSafe for Font
impl Send for Font
impl Sync for Font
impl Unpin for Font
impl UnwindSafe for Font
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