pub struct Table<'a> {
    pub axes: LazyArray16<'a, AxisRecord>,
    pub fallback_name_id: Option<u16>,
    version: u32,
    data: &'a [u8],
    value_lookup_start: Offset32,
    value_offsets: LazyArray16<'a, Offset16>,
}Expand description
Fields§
§axes: LazyArray16<'a, AxisRecord>List of axes
fallback_name_id: Option<u16>Fallback name when everything can be elided.
version: u32§data: &'a [u8]§value_lookup_start: Offset32§value_offsets: LazyArray16<'a, Offset16>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.