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 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
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
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.