pub struct Table<'a> {
pub axes: LazyArray16<'a, AxisRecord>,
pub fallback_name_id: Option<u16>,
/* private fields */
}
Expand description
Fields§
§axes: LazyArray16<'a, AxisRecord>
List of axes
fallback_name_id: Option<u16>
Fallback name when everything can be elided.
Implementations§
source§impl<'a> Table<'a>
impl<'a> Table<'a>
sourcepub fn subtables(&self) -> AxisValueSubtables<'a> ⓘ
pub fn subtables(&self) -> AxisValueSubtables<'a> ⓘ
Returns an iterator over the collection of axis value tables.
sourcepub fn subtable_for_axis(
&self,
axis: Tag,
match_value: Option<Fixed>,
) -> Option<AxisValueSubtable<'_>>
pub fn subtable_for_axis( &self, axis: Tag, match_value: Option<Fixed>, ) -> Option<AxisValueSubtable<'_>>
Returns the first matching subtable for a given axis.
If no match value is given the first subtable for the axis is returned. If a match value is
given, the first subtable for the axis where the value matches is returned. A value matches
if it is equal to the subtable’s value or contained within the range defined by the
subtable. If no matches are found None
is returned. Typically a match value is not
specified for non-variable fonts as multiple subtables for a given axis ought not exist. For
variable fonts a non-None
match value should be specified as multiple records for each of
the variation axes exist.
Note: Format 4 subtables are explicitly ignored in this function.
Trait Implementations§
impl<'a> Copy for Table<'a>
Auto Trait Implementations§
impl<'a> Freeze for Table<'a>
impl<'a> RefUnwindSafe for Table<'a>
impl<'a> Send for Table<'a>
impl<'a> Sync for Table<'a>
impl<'a> Unpin for Table<'a>
impl<'a> UnwindSafe for Table<'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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)