pub enum AxisValueTable<'a> {
Format1(AxisValueTableFormat1),
Format2(AxisValueTableFormat2),
Format3(AxisValueTableFormat3),
Format4(AxisValueTableFormat4<'a>),
}Expand description
Axis value table.
Axis value tables provide details regarding a specific style-attribute value on some specific axis of design variation, or a combination of design-variation axis values, and the relationship of those values to labels used as elements in subfamily names.
https://learn.microsoft.com/en-us/typography/opentype/spec/stat#axis-value-tables
Variants§
Format1(AxisValueTableFormat1)
Format 1 axis value table: name associated with a value.
Format2(AxisValueTableFormat2)
Format 2 axis value table: name associated with a range of values.
Format3(AxisValueTableFormat3)
Format 3 axis value table: name associated with a value and style-linked mapping.
Format4(AxisValueTableFormat4<'a>)
Format 4 axis value table: name associated with a value for each design axis.
Implementations§
Source§impl AxisValueTable<'_>
impl AxisValueTable<'_>
Sourcepub fn flags(&self) -> AxisValueTableFlags
pub fn flags(&self) -> AxisValueTableFlags
Retrieve the flags for this axis value table.
Sourcepub fn value_name_id(&self) -> u16
pub fn value_name_id(&self) -> u16
Retrieve the name id in the NAME table for this value.
Sourcepub fn is_elidable(&self) -> bool
pub fn is_elidable(&self) -> bool
If set, it indicates that the axis value represents the “normal” value for the axis and may be omitted when composing name strings.
Trait Implementations§
Source§impl<'a> Debug for AxisValueTable<'a>
impl<'a> Debug for AxisValueTable<'a>
Source§impl ReadBinaryDep for AxisValueTable<'_>
impl ReadBinaryDep for AxisValueTable<'_>
Auto Trait Implementations§
impl<'a> Freeze for AxisValueTable<'a>
impl<'a> RefUnwindSafe for AxisValueTable<'a>
impl<'a> Send for AxisValueTable<'a>
impl<'a> Sync for AxisValueTable<'a>
impl<'a> Unpin for AxisValueTable<'a>
impl<'a> UnwindSafe for AxisValueTable<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more