pub struct Font {
pub family: SharedString,
pub features: FontFeatures,
pub fallbacks: Option<FontFallbacks>,
pub weight: FontWeight,
pub style: FontStyle,
}Expand description
The configuration details for identifying a specific font.
Fields§
§family: SharedStringThe font family name.
The special name “.SystemUIFont” is used to identify the system UI font, which varies based on platform.
features: FontFeaturesThe font features to use.
fallbacks: Option<FontFallbacks>The fallbacks fonts to use.
weight: FontWeightThe font weight.
style: FontStyleThe font style.
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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.