pub struct FontRefEntry {
pub family: String,
pub name: String,
pub style: String,
pub attributes: FaceAttributes,
pub variations: Vec<AxisSetting>,
}Expand description
A font’s identity in the engine’s output.
Fields§
§family: StringFamily for matching (lowercase).
name: StringFace name (name id 4).
style: StringStyle name (name id 2).
attributes: FaceAttributesThe slope and weight this face answers for.
variations: Vec<AxisSetting>Where on its file’s axes this face sits, in user space. Empty for a static face and for a variable one at its default location. A painter that instances the file itself pins these axes, and draws the cut the run was shaped at rather than the file’s default.
Trait Implementations§
Source§impl Clone for FontRefEntry
impl Clone for FontRefEntry
Source§fn clone(&self) -> FontRefEntry
fn clone(&self) -> FontRefEntry
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 moreSource§impl Debug for FontRefEntry
impl Debug for FontRefEntry
Source§impl<'de> Deserialize<'de> for FontRefEntry
impl<'de> Deserialize<'de> for FontRefEntry
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
Source§impl PartialEq for FontRefEntry
impl PartialEq for FontRefEntry
Source§impl Serialize for FontRefEntry
impl Serialize for FontRefEntry
impl StructuralPartialEq for FontRefEntry
Auto Trait Implementations§
impl Freeze for FontRefEntry
impl RefUnwindSafe for FontRefEntry
impl Send for FontRefEntry
impl Sync for FontRefEntry
impl Unpin for FontRefEntry
impl UnsafeUnpin for FontRefEntry
impl UnwindSafe for FontRefEntry
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.