pub struct EmbeddedFontFace {
pub family: String,
pub weight: u16,
pub style: EmbeddedFontStyle,
pub stretch: Option<String>,
pub href: String,
pub format: Option<String>,
}Expand description
Embedded font face metadata extracted from EPUB CSS.
Fields§
§family: StringRequested font family from @font-face.
weight: u16Numeric weight (e.g. 400, 700).
style: EmbeddedFontStyleStyle variant.
stretch: Option<String>Optional stretch descriptor.
href: StringOPF-relative href to font resource.
format: Option<String>Optional format hint from format(...).
Trait Implementations§
Source§impl Clone for EmbeddedFontFace
impl Clone for EmbeddedFontFace
Source§fn clone(&self) -> EmbeddedFontFace
fn clone(&self) -> EmbeddedFontFace
Returns a duplicate of the value. Read more
1.0.0 · 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 EmbeddedFontFace
impl Debug for EmbeddedFontFace
Source§impl PartialEq for EmbeddedFontFace
impl PartialEq for EmbeddedFontFace
impl Eq for EmbeddedFontFace
impl StructuralPartialEq for EmbeddedFontFace
Auto Trait Implementations§
impl Freeze for EmbeddedFontFace
impl RefUnwindSafe for EmbeddedFontFace
impl Send for EmbeddedFontFace
impl Sync for EmbeddedFontFace
impl Unpin for EmbeddedFontFace
impl UnsafeUnpin for EmbeddedFontFace
impl UnwindSafe for EmbeddedFontFace
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