pub struct PackagedFont {
pub family: &'static str,
pub weight: u16,
pub style: PackagedFontStyle,
pub format: &'static str,
pub data: &'static [u8],
pub axes: &'static [FontVariationAxis],
}Expand description
A font face embedded in an application binary by design-system codegen.
Fields§
§family: &'static strCSS/font family name exposed to app code.
weight: u16OpenType font weight.
style: PackagedFontStyleFont slope style.
format: &'static strFont format such as truetype, opentype, woff, or woff2.
data: &'static [u8]Embedded font bytes.
axes: &'static [FontVariationAxis]Optional variation-axis defaults.
Trait Implementations§
Source§impl Clone for PackagedFont
impl Clone for PackagedFont
Source§fn clone(&self) -> PackagedFont
fn clone(&self) -> PackagedFont
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 moreimpl Copy for PackagedFont
Auto Trait Implementations§
impl Freeze for PackagedFont
impl RefUnwindSafe for PackagedFont
impl Send for PackagedFont
impl Sync for PackagedFont
impl Unpin for PackagedFont
impl UnsafeUnpin for PackagedFont
impl UnwindSafe for PackagedFont
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