pub struct TypgFontFaceMeta {
pub names: Vec<String>,
pub axis_tags: Vec<Tag>,
pub feature_tags: Vec<Tag>,
pub script_tags: Vec<Tag>,
pub table_tags: Vec<Tag>,
pub codepoints: Vec<char>,
pub is_variable: bool,
pub weight_class: Option<u16>,
pub width_class: Option<u16>,
pub family_class: Option<(u8, u8)>,
pub creator_names: Vec<String>,
pub license_names: Vec<String>,
}Expand description
Extracted metadata for a single font face.
Fields§
§names: Vec<String>Name strings: family, full, postscript, subfamily, plus file stem as fallback.
Variation axis tags (wght, wdth, opsz, …). Empty for static fonts.
OpenType feature tags from GSUB and GPOS tables.
Script tags from GSUB and GPOS tables.
Top-level table tags present in the font.
codepoints: Vec<char>Unicode codepoints covered by the font’s cmap.
is_variable: boolTrue if the font contains an fvar table (variable font).
weight_class: Option<u16>OS/2 usWeightClass (typically 100-900).
width_class: Option<u16>OS/2 usWidthClass (1-9).
family_class: Option<(u8, u8)>OS/2 sFamilyClass split into (class, subclass).
creator_names: Vec<String>Creator-related name strings (copyright, trademark, manufacturer, designer, description, vendor URL, designer URL, license, license URL).
license_names: Vec<String>License-related name strings (copyright, license description, license URL).
Trait Implementations§
Source§impl Clone for TypgFontFaceMeta
impl Clone for TypgFontFaceMeta
Source§fn clone(&self) -> TypgFontFaceMeta
fn clone(&self) -> TypgFontFaceMeta
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 TypgFontFaceMeta
impl Debug for TypgFontFaceMeta
Source§impl<'de> Deserialize<'de> for TypgFontFaceMeta
impl<'de> Deserialize<'de> for TypgFontFaceMeta
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
Auto Trait Implementations§
impl Freeze for TypgFontFaceMeta
impl RefUnwindSafe for TypgFontFaceMeta
impl Send for TypgFontFaceMeta
impl Sync for TypgFontFaceMeta
impl Unpin for TypgFontFaceMeta
impl UnsafeUnpin for TypgFontFaceMeta
impl UnwindSafe for TypgFontFaceMeta
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more