pub struct FontFace {
pub name: String,
pub weight: FontWeight,
pub italic: bool,
}Expand description
One face a font family ships (docs/fonts.md): its display name (“Bold Italic”), weight and
slant. What FontFamilyInfo::faces lists and what a font menu’s style picker offers.
Fields§
§name: String§weight: FontWeight§italic: boolImplementations§
Source§impl FontFace
impl FontFace
Sourcepub fn synthesized_name(weight: FontWeight, italic: bool) -> String
pub fn synthesized_name(weight: FontWeight, italic: bool) -> String
A display name from weight + slant (“Semibold Italic”) for platforms whose enumeration
API names no face (Android’s fonts.xml, the CSS generic families).
Trait Implementations§
impl Eq for FontFace
impl StructuralPartialEq for FontFace
Auto Trait Implementations§
impl Freeze for FontFace
impl RefUnwindSafe for FontFace
impl Send for FontFace
impl Sync for FontFace
impl Unpin for FontFace
impl UnsafeUnpin for FontFace
impl UnwindSafe for FontFace
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