Enum write_fonts::tables::stat::AxisValue
source · pub enum AxisValue {
Format1(AxisValueFormat1),
Format2(AxisValueFormat2),
Format3(AxisValueFormat3),
Format4(AxisValueFormat4),
}Expand description
Variants§
Format1(AxisValueFormat1)
Format2(AxisValueFormat2)
Format3(AxisValueFormat3)
Format4(AxisValueFormat4)
Implementations§
source§impl AxisValue
impl AxisValue
sourcepub fn format_1(
axis_index: u16,
flags: AxisValueTableFlags,
value_name_id: NameId,
value: Fixed
) -> Self
pub fn format_1( axis_index: u16, flags: AxisValueTableFlags, value_name_id: NameId, value: Fixed ) -> Self
Construct a new AxisValueFormat1 subtable
sourcepub fn format_2(
axis_index: u16,
flags: AxisValueTableFlags,
value_name_id: NameId,
nominal_value: Fixed,
range_min_value: Fixed,
range_max_value: Fixed
) -> Self
pub fn format_2( axis_index: u16, flags: AxisValueTableFlags, value_name_id: NameId, nominal_value: Fixed, range_min_value: Fixed, range_max_value: Fixed ) -> Self
Construct a new AxisValueFormat2 subtable
sourcepub fn format_3(
axis_index: u16,
flags: AxisValueTableFlags,
value_name_id: NameId,
value: Fixed,
linked_value: Fixed
) -> Self
pub fn format_3( axis_index: u16, flags: AxisValueTableFlags, value_name_id: NameId, value: Fixed, linked_value: Fixed ) -> Self
Construct a new AxisValueFormat3 subtable
sourcepub fn format_4(
flags: AxisValueTableFlags,
value_name_id: NameId,
axis_values: Vec<AxisValueRecord>
) -> Self
pub fn format_4( flags: AxisValueTableFlags, value_name_id: NameId, axis_values: Vec<AxisValueRecord> ) -> Self
Construct a new AxisValueFormat4 subtable
Trait Implementations§
source§impl FontWrite for AxisValue
impl FontWrite for AxisValue
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 From<AxisValueFormat1> for AxisValue
impl From<AxisValueFormat1> for AxisValue
source§fn from(src: AxisValueFormat1) -> AxisValue
fn from(src: AxisValueFormat1) -> AxisValue
Converts to this type from the input type.
source§impl From<AxisValueFormat2> for AxisValue
impl From<AxisValueFormat2> for AxisValue
source§fn from(src: AxisValueFormat2) -> AxisValue
fn from(src: AxisValueFormat2) -> AxisValue
Converts to this type from the input type.
source§impl From<AxisValueFormat3> for AxisValue
impl From<AxisValueFormat3> for AxisValue
source§fn from(src: AxisValueFormat3) -> AxisValue
fn from(src: AxisValueFormat3) -> AxisValue
Converts to this type from the input type.
source§impl From<AxisValueFormat4> for AxisValue
impl From<AxisValueFormat4> for AxisValue
source§fn from(src: AxisValueFormat4) -> AxisValue
fn from(src: AxisValueFormat4) -> AxisValue
Converts to this type from the input type.
source§impl FromObjRef<AxisValue<'_>> for AxisValue
impl FromObjRef<AxisValue<'_>> for AxisValue
source§fn from_obj_ref(obj: &AxisValue<'_>, _: FontData<'_>) -> Self
fn from_obj_ref(obj: &AxisValue<'_>, _: FontData<'_>) -> Self
Convert
from to an instance of Self, using the provided data to resolve offsets.source§impl FromTableRef<AxisValue<'_>> for AxisValue
impl FromTableRef<AxisValue<'_>> for AxisValue
fn from_table_ref(from: &T) -> Self
source§impl Ord for AxisValue
impl Ord for AxisValue
source§impl PartialEq for AxisValue
impl PartialEq for AxisValue
source§impl PartialOrd for AxisValue
impl PartialOrd for AxisValue
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 AxisValue
impl Validate for AxisValue
source§fn validate_impl(&self, ctx: &mut ValidationCtx)
fn validate_impl(&self, ctx: &mut ValidationCtx)
Validate this table. Read more
impl Eq for AxisValue
impl StructuralPartialEq for AxisValue
Auto Trait Implementations§
impl RefUnwindSafe for AxisValue
impl Send for AxisValue
impl Sync for AxisValue
impl Unpin for AxisValue
impl UnwindSafe for AxisValue
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<'a, T> FontReadWithArgs<'a> for Twhere
T: FontRead<'a>,
impl<'a, T> FontReadWithArgs<'a> for Twhere
T: FontRead<'a>,
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.