pub struct OutlineFontData {
pub data: FontData,
pub cache_key: u128,
pub postscript_name: Option<String>,
pub weight: Option<u32>,
pub is_italic: bool,
pub is_serif: bool,
pub is_monospace: bool,
}Expand description
Font data and metadata for downstream use.
Fields§
§data: FontDataRaw font bytes (TrueType/OpenType/CFF data).
cache_key: u128Cache key for font deduplication.
postscript_name: Option<String>PostScript name (e.g., “TimesNewRomanPS-BoldMT”).
weight: Option<u32>Font weight (100-900, 400=normal, 700=bold).
is_italic: boolWhether the font is italic/oblique.
is_serif: boolWhether the font is serif (vs sans-serif).
is_monospace: boolWhether the font is monospace.
Trait Implementations§
Source§impl Clone for OutlineFontData
impl Clone for OutlineFontData
Source§fn clone(&self) -> OutlineFontData
fn clone(&self) -> OutlineFontData
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 moreAuto Trait Implementations§
impl Freeze for OutlineFontData
impl !RefUnwindSafe for OutlineFontData
impl Send for OutlineFontData
impl Sync for OutlineFontData
impl Unpin for OutlineFontData
impl UnsafeUnpin for OutlineFontData
impl !UnwindSafe for OutlineFontData
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