Enum owned_ttf_parser::stat::AxisValueSubtable
source · pub enum AxisValueSubtable<'a> {
Format1(AxisValueSubtableFormat1),
Format2(AxisValueSubtableFormat2),
Format3(AxisValueSubtableFormat3),
Format4(AxisValueSubtableFormat4<'a>),
}
Expand description
Variants§
Format1(AxisValueSubtableFormat1)
Format2(AxisValueSubtableFormat2)
Format3(AxisValueSubtableFormat3)
Format4(AxisValueSubtableFormat4<'a>)
Implementations§
source§impl<'a> AxisValueSubtable<'a>
impl<'a> AxisValueSubtable<'a>
sourcepub fn value(&self) -> Option<Fixed>
pub fn value(&self) -> Option<Fixed>
Returns the value from an axis value subtable.
For formats 1 and 3 the value is returned, for formats 2 and 4 None
is returned as there
is no single value associated with those formats.
sourcepub fn contains(&self, value: Fixed) -> bool
pub fn contains(&self, value: Fixed) -> bool
Returns true
if the axis subtable either is the value or is a range that contains the
value passed in as an argument.
Note: this will always return false for format 4 subtables as they may contain multiple axes.
sourcepub fn is_elidable(&self) -> bool
pub fn is_elidable(&self) -> bool
Returns true
if the axis subtable has the ELIDABLE_AXIS_VALUE_NAME
flag set.
sourcepub fn is_older_sibling(&self) -> bool
pub fn is_older_sibling(&self) -> bool
Returns true
if the axis subtable has the OLDER_SIBLING_FONT_ATTRIBUTE
flag set.
Trait Implementations§
source§impl<'a> Clone for AxisValueSubtable<'a>
impl<'a> Clone for AxisValueSubtable<'a>
source§fn clone(&self) -> AxisValueSubtable<'a>
fn clone(&self) -> AxisValueSubtable<'a>
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<'a> Debug for AxisValueSubtable<'a>
impl<'a> Debug for AxisValueSubtable<'a>
impl<'a> Copy for AxisValueSubtable<'a>
Auto Trait Implementations§
impl<'a> Freeze for AxisValueSubtable<'a>
impl<'a> RefUnwindSafe for AxisValueSubtable<'a>
impl<'a> Send for AxisValueSubtable<'a>
impl<'a> Sync for AxisValueSubtable<'a>
impl<'a> Unpin for AxisValueSubtable<'a>
impl<'a> UnwindSafe for AxisValueSubtable<'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
Mutably borrows from an owned value. Read more