pub struct AxisSetting {
pub tag: [u8; 4],
pub value: f32,
}Expand description
One axis of a variable face, pinned: the tag and the user-space coordinate this face sits at.
A face at its family’s default location has none — there is nothing to pin, and an instanced subset of the default is just the default.
Fields§
§tag: [u8; 4]The four-byte OpenType axis tag, e.g. wght.
value: f32The coordinate in the axis’s own units.
Trait Implementations§
Source§impl Clone for AxisSetting
impl Clone for AxisSetting
Source§fn clone(&self) -> AxisSetting
fn clone(&self) -> AxisSetting
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 moreimpl Copy for AxisSetting
Source§impl Debug for AxisSetting
impl Debug for AxisSetting
Source§impl<'de> Deserialize<'de> for AxisSetting
impl<'de> Deserialize<'de> for AxisSetting
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 AxisSetting
impl PartialEq for AxisSetting
Source§impl Serialize for AxisSetting
impl Serialize for AxisSetting
impl StructuralPartialEq for AxisSetting
Auto Trait Implementations§
impl Freeze for AxisSetting
impl RefUnwindSafe for AxisSetting
impl Send for AxisSetting
impl Sync for AxisSetting
impl Unpin for AxisSetting
impl UnsafeUnpin for AxisSetting
impl UnwindSafe for AxisSetting
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.