pub struct Typeface {
pub index: u32,
pub languages: Vec<String>,
pub style: Style,
pub code_points: CharSet,
pub postscript_name: Option<String>,
pub full_name: Option<String>,
}Expand description
Describes a single typeface within a font file
Fields§
§index: u32Index of the typeface in the file. If the file only contains a single typeface, this will
always be 0.
languages: Vec<String>List of languages that the typeface supports, in BCP-47 format.
Example: ["en", "zh-Hant", "sr-Cyrl"]
style: StyleText style of the typeface.
code_points: CharSetList of Unicode code points supported by the typeface.
postscript_name: Option<String>The typeface’s unique “Postscript name”.
This may be absent in manifests converted from v1, in which case it will need to be filled in when the font server starts up.
full_name: Option<String>The typeface’s unique “full name”.
This may be absent in manifests converted from v1, in which case it may be filled in when the font server starts up.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Typeface
impl<'de> Deserialize<'de> for Typeface
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
impl Eq for Typeface
impl StructuralPartialEq for Typeface
Auto Trait Implementations§
impl Freeze for Typeface
impl RefUnwindSafe for Typeface
impl Send for Typeface
impl Sync for Typeface
impl Unpin for Typeface
impl UnwindSafe for Typeface
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,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
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