pub struct DesignFontAsset {
pub family: String,
pub weight: u16,
pub style: PackagedFontStyle,
pub path: String,
pub format: String,
pub axes: Vec<FontVariationAxis>,
}Expand description
Metadata for a font face declared by a Design System Package.
Fields§
§family: StringCSS/font family name exposed to app code.
weight: u16OpenType font weight, normally in the 100..=900 range.
style: PackagedFontStyleFont slope style.
path: StringPath to the font file relative to the DSP file.
format: StringFont format such as truetype, opentype, woff, or woff2.
axes: Vec<FontVariationAxis>Optional variation-axis defaults.
Trait Implementations§
Source§impl Clone for DesignFontAsset
impl Clone for DesignFontAsset
Source§fn clone(&self) -> DesignFontAsset
fn clone(&self) -> DesignFontAsset
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DesignFontAsset
impl Debug for DesignFontAsset
Source§impl<'de> Deserialize<'de> for DesignFontAsset
impl<'de> Deserialize<'de> for DesignFontAsset
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
Source§impl PartialEq for DesignFontAsset
impl PartialEq for DesignFontAsset
Source§impl Serialize for DesignFontAsset
impl Serialize for DesignFontAsset
impl StructuralPartialEq for DesignFontAsset
Auto Trait Implementations§
impl Freeze for DesignFontAsset
impl RefUnwindSafe for DesignFontAsset
impl Send for DesignFontAsset
impl Sync for DesignFontAsset
impl Unpin for DesignFontAsset
impl UnsafeUnpin for DesignFontAsset
impl UnwindSafe for DesignFontAsset
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