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,
pub ascent: Option<f64>,
pub descent: Option<f64>,
pub cap_height: Option<f64>,
pub x_height: Option<f64>,
}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.
ascent: Option<f64>Ascent above baseline in /1000 em, from font binary metrics.
descent: Option<f64>Descent below baseline (negative) in /1000 em, from font binary metrics.
cap_height: Option<f64>Cap height in /1000 em, when present in the font.
x_height: Option<f64>x-height in /1000 em, when present in the font.
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 (const: unstable) · 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 !RefUnwindSafe for OutlineFontData
impl !UnwindSafe for OutlineFontData
impl Freeze for OutlineFontData
impl Send for OutlineFontData
impl Sync for OutlineFontData
impl Unpin for OutlineFontData
impl UnsafeUnpin 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