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: u32
Index 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: Style
Text style of the typeface.
code_points: CharSet
List 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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)