pub struct Family {
pub family: String,
pub aliases: Option<Vec<String>>,
pub fonts: Vec<Font>,
pub fallback: bool,
pub generic_family: Option<GenericFontFamily>,
}
Expand description
Metadata about a single font family.
Fields§
§family: String
Family name
aliases: Option<Vec<String>>
List of alternate names
fonts: Vec<Font>
List of font assets and typeface metadata belonging to this family
fallback: bool
Whether this font can serve as a fallback when other fonts are missing.
generic_family: Option<GenericFontFamily>
The generic group of font families to which this family belongs.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Family
impl<'de> Deserialize<'de> for Family
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Family
impl RefUnwindSafe for Family
impl Send for Family
impl Sync for Family
impl Unpin for Family
impl UnwindSafe for Family
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