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.
fn name(&self) -> &'static str
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 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
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.