Struct write_fonts::tables::fvar::VariationAxisRecord
source · pub struct VariationAxisRecord {
pub axis_tag: Tag,
pub min_value: Fixed,
pub default_value: Fixed,
pub max_value: Fixed,
pub flags: u16,
pub axis_name_id: NameId,
}Expand description
Fields§
§axis_tag: TagTag identifying the design variation for the axis.
min_value: FixedThe minimum coordinate value for the axis.
default_value: FixedThe default coordinate value for the axis.
max_value: FixedThe maximum coordinate value for the axis.
flags: u16Axis qualifiers — see details below.
axis_name_id: NameIdThe name ID for entries in the ‘name’ table that provide a display name for this axis.
Implementations§
Trait Implementations§
source§impl Clone for VariationAxisRecord
impl Clone for VariationAxisRecord
source§fn clone(&self) -> VariationAxisRecord
fn clone(&self) -> VariationAxisRecord
Returns a copy of the value. Read more
1.0.0 · 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 VariationAxisRecord
impl Debug for VariationAxisRecord
source§impl Default for VariationAxisRecord
impl Default for VariationAxisRecord
source§fn default() -> VariationAxisRecord
fn default() -> VariationAxisRecord
Returns the “default value” for a type. Read more
source§impl FontWrite for VariationAxisRecord
impl FontWrite for VariationAxisRecord
source§fn write_into(&self, writer: &mut TableWriter)
fn write_into(&self, writer: &mut TableWriter)
Write our data and information about offsets into this TableWriter.
source§fn table_type(&self) -> TableType
fn table_type(&self) -> TableType
The type of this table. Read more
source§impl FromObjRef<VariationAxisRecord> for VariationAxisRecord
impl FromObjRef<VariationAxisRecord> for VariationAxisRecord
source§fn from_obj_ref(obj: &VariationAxisRecord, _: FontData<'_>) -> Self
fn from_obj_ref(obj: &VariationAxisRecord, _: FontData<'_>) -> Self
Convert
from to an instance of Self, using the provided data to resolve offsets.source§impl Hash for VariationAxisRecord
impl Hash for VariationAxisRecord
source§impl Ord for VariationAxisRecord
impl Ord for VariationAxisRecord
source§fn cmp(&self, other: &VariationAxisRecord) -> Ordering
fn cmp(&self, other: &VariationAxisRecord) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<VariationAxisRecord> for VariationAxisRecord
impl PartialEq<VariationAxisRecord> for VariationAxisRecord
source§fn eq(&self, other: &VariationAxisRecord) -> bool
fn eq(&self, other: &VariationAxisRecord) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<VariationAxisRecord> for VariationAxisRecord
impl PartialOrd<VariationAxisRecord> for VariationAxisRecord
source§fn partial_cmp(&self, other: &VariationAxisRecord) -> Option<Ordering>
fn partial_cmp(&self, other: &VariationAxisRecord) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Validate for VariationAxisRecord
impl Validate for VariationAxisRecord
source§fn validate_impl(&self, _ctx: &mut ValidationCtx)
fn validate_impl(&self, _ctx: &mut ValidationCtx)
Validate this table. Read more
impl Eq for VariationAxisRecord
impl StructuralEq for VariationAxisRecord
impl StructuralPartialEq for VariationAxisRecord
Auto Trait Implementations§
impl RefUnwindSafe for VariationAxisRecord
impl Send for VariationAxisRecord
impl Sync for VariationAxisRecord
impl Unpin for VariationAxisRecord
impl UnwindSafe for VariationAxisRecord
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<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere U: FromObjRef<T>,
source§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.