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
Every font’s personal biography in convenient story form
We gather all the delightful details that make each font unique - their names, talents, family connections, and secret abilities. Think of this as the font’s dating profile, showing what makes them special and what conversations they enjoy having.
Fields§
§names: Vec<String>All the names this font goes by - family, full, postscript, and nicknames
The dance moves this variable font can perform (weight, width, optical size…)
Special typographic tricks and typographic talents tucked away inside
Languages and scripts this font can speak fluently
The building blocks available in this font’s toolkit
codepoints: Vec<char>Every character this font knows how to draw - their complete vocabulary
is_variable: boolCan this font change shape like a chameleon, or stay true to one form?
weight_class: Option<u16>How bold does this font think it is? (100-900 typographic scale)
width_class: Option<u16>How wide does this font like to stretch? (1-9 condensed to expanded)
family_class: Option<(u8, u8)>What typographic family does this font belong to? (class and subgroup)
creator_names: Vec<String>Strings from name IDs relevant to creator/maker (copyright, trademark, manufacturer, designer, description, vendor URL, designer URL, license, license URL)
license_names: Vec<String>Strings from name IDs relevant to licensing (copyright, license, license URL)
Trait Implementations§
Source§impl Clone for TypgFontFaceMeta
impl Clone for TypgFontFaceMeta
Source§fn clone(&self) -> TypgFontFaceMeta
fn clone(&self) -> TypgFontFaceMeta
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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>,
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
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>
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>
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