Struct read_fonts::TableRef
source · [−]pub struct TableRef<'a, T> { /* private fields */ }Expand description
Typed access to raw table data.
Implementations
sourceimpl<'a> TableRef<'a, GdefMarker>
impl<'a> TableRef<'a, GdefMarker>
sourcepub fn version(&self) -> MajorMinor
pub fn version(&self) -> MajorMinor
The major/minor version of the GDEF table
sourcepub fn glyph_class_def_offset(&self) -> Nullable<Offset16>
pub fn glyph_class_def_offset(&self) -> Nullable<Offset16>
Offset to class definition table for glyph type, from beginning of GDEF header (may be NULL)
sourcepub fn glyph_class_def(&self) -> Option<Result<ClassDef<'a>, ReadError>>
pub fn glyph_class_def(&self) -> Option<Result<ClassDef<'a>, ReadError>>
Attempt to resolve glyph_class_def_offset.
sourcepub fn attach_list_offset(&self) -> Nullable<Offset16>
pub fn attach_list_offset(&self) -> Nullable<Offset16>
Offset to attachment point list table, from beginning of GDEF header (may be NULL)
sourcepub fn attach_list(&self) -> Option<Result<AttachList<'a>, ReadError>>
pub fn attach_list(&self) -> Option<Result<AttachList<'a>, ReadError>>
Attempt to resolve attach_list_offset.
sourcepub fn lig_caret_list_offset(&self) -> Nullable<Offset16>
pub fn lig_caret_list_offset(&self) -> Nullable<Offset16>
Offset to ligature caret list table, from beginning of GDEF header (may be NULL)
sourcepub fn lig_caret_list(&self) -> Option<Result<LigCaretList<'a>, ReadError>>
pub fn lig_caret_list(&self) -> Option<Result<LigCaretList<'a>, ReadError>>
Attempt to resolve lig_caret_list_offset.
sourcepub fn mark_attach_class_def_offset(&self) -> Nullable<Offset16>
pub fn mark_attach_class_def_offset(&self) -> Nullable<Offset16>
Offset to class definition table for mark attachment type, from beginning of GDEF header (may be NULL)
sourcepub fn mark_attach_class_def(&self) -> Option<Result<ClassDef<'a>, ReadError>>
pub fn mark_attach_class_def(&self) -> Option<Result<ClassDef<'a>, ReadError>>
Attempt to resolve mark_attach_class_def_offset.
sourcepub fn mark_glyph_sets_def_offset(&self) -> Option<Nullable<Offset16>>
pub fn mark_glyph_sets_def_offset(&self) -> Option<Nullable<Offset16>>
Offset to the table of mark glyph set definitions, from beginning of GDEF header (may be NULL)
sourcepub fn mark_glyph_sets_def(
&self
) -> Option<Result<MarkGlyphSets<'a>, ReadError>>
pub fn mark_glyph_sets_def(
&self
) -> Option<Result<MarkGlyphSets<'a>, ReadError>>
Attempt to resolve mark_glyph_sets_def_offset.
sourcepub fn item_var_store_offset(&self) -> Option<Nullable<Offset32>>
pub fn item_var_store_offset(&self) -> Option<Nullable<Offset32>>
Offset to the Item Variation Store table, from beginning of GDEF header (may be NULL)
sourcepub fn item_var_store(&self) -> Option<Result<ClassDef<'a>, ReadError>>
pub fn item_var_store(&self) -> Option<Result<ClassDef<'a>, ReadError>>
Attempt to resolve item_var_store_offset.
sourceimpl<'a> TableRef<'a, AttachListMarker>
impl<'a> TableRef<'a, AttachListMarker>
sourcepub fn coverage_offset(&self) -> Offset16
pub fn coverage_offset(&self) -> Offset16
Offset to Coverage table - from beginning of AttachList table
sourcepub fn coverage(&self) -> Result<CoverageTable<'a>, ReadError>
pub fn coverage(&self) -> Result<CoverageTable<'a>, ReadError>
Attempt to resolve coverage_offset.
sourcepub fn glyph_count(&self) -> u16
pub fn glyph_count(&self) -> u16
Number of glyphs with attachment points
sourcepub fn attach_point_offsets(&self) -> &'a [BigEndian<Offset16>]
pub fn attach_point_offsets(&self) -> &'a [BigEndian<Offset16>]
Array of offsets to AttachPoint tables-from beginning of AttachList table-in Coverage Index order
sourcepub fn attach_points(
&self
) -> impl Iterator<Item = Result<AttachPoint<'a>, ReadError>> + 'a
pub fn attach_points(
&self
) -> impl Iterator<Item = Result<AttachPoint<'a>, ReadError>> + 'a
Attempt to resolve attach_point_offsets.
sourceimpl<'a> TableRef<'a, AttachPointMarker>
impl<'a> TableRef<'a, AttachPointMarker>
sourcepub fn point_count(&self) -> u16
pub fn point_count(&self) -> u16
Number of attachment points on this glyph
sourcepub fn point_indices(&self) -> &'a [BigEndian<u16>]
pub fn point_indices(&self) -> &'a [BigEndian<u16>]
Array of contour point indices -in increasing numerical order
sourceimpl<'a> TableRef<'a, LigCaretListMarker>
impl<'a> TableRef<'a, LigCaretListMarker>
sourcepub fn coverage_offset(&self) -> Offset16
pub fn coverage_offset(&self) -> Offset16
Offset to Coverage table - from beginning of LigCaretList table
sourcepub fn coverage(&self) -> Result<CoverageTable<'a>, ReadError>
pub fn coverage(&self) -> Result<CoverageTable<'a>, ReadError>
Attempt to resolve coverage_offset.
sourcepub fn lig_glyph_count(&self) -> u16
pub fn lig_glyph_count(&self) -> u16
Number of ligature glyphs
sourcepub fn lig_glyph_offsets(&self) -> &'a [BigEndian<Offset16>]
pub fn lig_glyph_offsets(&self) -> &'a [BigEndian<Offset16>]
Array of offsets to LigGlyph tables, from beginning of LigCaretList table —in Coverage Index order
sourcepub fn lig_glyphs(
&self
) -> impl Iterator<Item = Result<LigGlyph<'a>, ReadError>> + 'a
pub fn lig_glyphs(
&self
) -> impl Iterator<Item = Result<LigGlyph<'a>, ReadError>> + 'a
Attempt to resolve lig_glyph_offsets.
sourceimpl<'a> TableRef<'a, LigGlyphMarker>
impl<'a> TableRef<'a, LigGlyphMarker>
sourcepub fn caret_count(&self) -> u16
pub fn caret_count(&self) -> u16
Number of CaretValue tables for this ligature (components - 1)
sourcepub fn caret_value_offsets(&self) -> &'a [BigEndian<Offset16>]
pub fn caret_value_offsets(&self) -> &'a [BigEndian<Offset16>]
Array of offsets to CaretValue tables, from beginning of LigGlyph table — in increasing coordinate order
sourcepub fn caret_values(
&self
) -> impl Iterator<Item = Result<CaretValue<'a>, ReadError>> + 'a
pub fn caret_values(
&self
) -> impl Iterator<Item = Result<CaretValue<'a>, ReadError>> + 'a
Attempt to resolve caret_value_offsets.
sourceimpl<'a> TableRef<'a, CaretValueFormat1Marker>
impl<'a> TableRef<'a, CaretValueFormat1Marker>
sourcepub fn caret_value_format(&self) -> u16
pub fn caret_value_format(&self) -> u16
Format identifier: format = 1
sourcepub fn coordinate(&self) -> i16
pub fn coordinate(&self) -> i16
X or Y value, in design units
sourceimpl<'a> TableRef<'a, CaretValueFormat2Marker>
impl<'a> TableRef<'a, CaretValueFormat2Marker>
sourcepub fn caret_value_format(&self) -> u16
pub fn caret_value_format(&self) -> u16
Format identifier: format = 2
sourcepub fn caret_value_point_index(&self) -> u16
pub fn caret_value_point_index(&self) -> u16
Contour point index on glyph
sourceimpl<'a> TableRef<'a, CaretValueFormat3Marker>
impl<'a> TableRef<'a, CaretValueFormat3Marker>
sourcepub fn caret_value_format(&self) -> u16
pub fn caret_value_format(&self) -> u16
Format identifier-format = 3
sourcepub fn coordinate(&self) -> i16
pub fn coordinate(&self) -> i16
X or Y value, in design units
sourcepub fn device_offset(&self) -> Offset16
pub fn device_offset(&self) -> Offset16
Offset to Device table (non-variable font) / Variation Index table (variable font) for X or Y value-from beginning of CaretValue table
sourceimpl<'a> TableRef<'a, MarkGlyphSetsMarker>
impl<'a> TableRef<'a, MarkGlyphSetsMarker>
sourcepub fn mark_glyph_set_count(&self) -> u16
pub fn mark_glyph_set_count(&self) -> u16
Number of mark glyph sets defined
sourcepub fn coverage_offsets(&self) -> &'a [BigEndian<Offset32>]
pub fn coverage_offsets(&self) -> &'a [BigEndian<Offset32>]
Array of offsets to mark glyph set coverage tables, from the start of the MarkGlyphSets table.
sourcepub fn coverages(
&self
) -> impl Iterator<Item = Result<CoverageTable<'a>, ReadError>> + 'a
pub fn coverages(
&self
) -> impl Iterator<Item = Result<CoverageTable<'a>, ReadError>> + 'a
Attempt to resolve coverage_offsets.
sourceimpl<'a> TableRef<'a, GposMarker>
impl<'a> TableRef<'a, GposMarker>
sourcepub fn version(&self) -> MajorMinor
pub fn version(&self) -> MajorMinor
The major and minor version of the GPOS table, as a tuple (u16, u16)
sourcepub fn script_list_offset(&self) -> Offset16
pub fn script_list_offset(&self) -> Offset16
Offset to ScriptList table, from beginning of GPOS table
sourcepub fn script_list(&self) -> Result<ScriptList<'a>, ReadError>
pub fn script_list(&self) -> Result<ScriptList<'a>, ReadError>
Attempt to resolve script_list_offset.
sourcepub fn feature_list_offset(&self) -> Offset16
pub fn feature_list_offset(&self) -> Offset16
Offset to FeatureList table, from beginning of GPOS table
sourcepub fn feature_list(&self) -> Result<FeatureList<'a>, ReadError>
pub fn feature_list(&self) -> Result<FeatureList<'a>, ReadError>
Attempt to resolve feature_list_offset.
sourcepub fn lookup_list_offset(&self) -> Offset16
pub fn lookup_list_offset(&self) -> Offset16
Offset to LookupList table, from beginning of GPOS table
sourcepub fn lookup_list(&self) -> Result<PositionLookupList<'a>, ReadError>
pub fn lookup_list(&self) -> Result<PositionLookupList<'a>, ReadError>
Attempt to resolve lookup_list_offset.
pub fn feature_variations_offset(&self) -> Option<Nullable<Offset32>>
sourcepub fn feature_variations(
&self
) -> Option<Result<FeatureVariations<'a>, ReadError>>
pub fn feature_variations(
&self
) -> Option<Result<FeatureVariations<'a>, ReadError>>
Attempt to resolve feature_variations_offset.
sourceimpl<'a> TableRef<'a, AnchorFormat1Marker>
impl<'a> TableRef<'a, AnchorFormat1Marker>
sourcepub fn anchor_format(&self) -> u16
pub fn anchor_format(&self) -> u16
Format identifier, = 1
sourcepub fn x_coordinate(&self) -> i16
pub fn x_coordinate(&self) -> i16
Horizontal value, in design units
sourcepub fn y_coordinate(&self) -> i16
pub fn y_coordinate(&self) -> i16
Vertical value, in design units
sourceimpl<'a> TableRef<'a, AnchorFormat2Marker>
impl<'a> TableRef<'a, AnchorFormat2Marker>
sourcepub fn anchor_format(&self) -> u16
pub fn anchor_format(&self) -> u16
Format identifier, = 2
sourcepub fn x_coordinate(&self) -> i16
pub fn x_coordinate(&self) -> i16
Horizontal value, in design units
sourcepub fn y_coordinate(&self) -> i16
pub fn y_coordinate(&self) -> i16
Vertical value, in design units
sourcepub fn anchor_point(&self) -> u16
pub fn anchor_point(&self) -> u16
Index to glyph contour point
sourceimpl<'a> TableRef<'a, AnchorFormat3Marker>
impl<'a> TableRef<'a, AnchorFormat3Marker>
sourcepub fn anchor_format(&self) -> u16
pub fn anchor_format(&self) -> u16
Format identifier, = 3
sourcepub fn x_coordinate(&self) -> i16
pub fn x_coordinate(&self) -> i16
Horizontal value, in design units
sourcepub fn y_coordinate(&self) -> i16
pub fn y_coordinate(&self) -> i16
Vertical value, in design units
sourcepub fn x_device_offset(&self) -> Nullable<Offset16>
pub fn x_device_offset(&self) -> Nullable<Offset16>
Offset to Device table (non-variable font) / VariationIndex table (variable font) for X coordinate, from beginning of Anchor table (may be NULL)
sourcepub fn x_device(&self) -> Option<Result<Device<'a>, ReadError>>
pub fn x_device(&self) -> Option<Result<Device<'a>, ReadError>>
Attempt to resolve x_device_offset.
sourcepub fn y_device_offset(&self) -> Nullable<Offset16>
pub fn y_device_offset(&self) -> Nullable<Offset16>
Offset to Device table (non-variable font) / VariationIndex table (variable font) for Y coordinate, from beginning of Anchor table (may be NULL)
sourceimpl<'a> TableRef<'a, MarkArrayMarker>
impl<'a> TableRef<'a, MarkArrayMarker>
sourcepub fn mark_count(&self) -> u16
pub fn mark_count(&self) -> u16
Number of MarkRecords
sourcepub fn mark_records(&self) -> &'a [MarkRecord]
pub fn mark_records(&self) -> &'a [MarkRecord]
Array of MarkRecords, ordered by corresponding glyphs in the associated mark Coverage table.
sourceimpl<'a> TableRef<'a, SinglePosFormat1Marker>
impl<'a> TableRef<'a, SinglePosFormat1Marker>
sourcepub fn pos_format(&self) -> u16
pub fn pos_format(&self) -> u16
Format identifier: format = 1
sourcepub fn coverage_offset(&self) -> Offset16
pub fn coverage_offset(&self) -> Offset16
Offset to Coverage table, from beginning of SinglePos subtable.
sourcepub fn coverage(&self) -> Result<CoverageTable<'a>, ReadError>
pub fn coverage(&self) -> Result<CoverageTable<'a>, ReadError>
Attempt to resolve coverage_offset.
sourcepub fn value_format(&self) -> ValueFormat
pub fn value_format(&self) -> ValueFormat
Defines the types of data in the ValueRecord.
sourcepub fn value_record(&self) -> ValueRecord
pub fn value_record(&self) -> ValueRecord
Defines positioning value(s) — applied to all glyphs in the Coverage table.
sourceimpl<'a> TableRef<'a, SinglePosFormat2Marker>
impl<'a> TableRef<'a, SinglePosFormat2Marker>
sourcepub fn pos_format(&self) -> u16
pub fn pos_format(&self) -> u16
Format identifier: format = 2
sourcepub fn coverage_offset(&self) -> Offset16
pub fn coverage_offset(&self) -> Offset16
Offset to Coverage table, from beginning of SinglePos subtable.
sourcepub fn coverage(&self) -> Result<CoverageTable<'a>, ReadError>
pub fn coverage(&self) -> Result<CoverageTable<'a>, ReadError>
Attempt to resolve coverage_offset.
sourcepub fn value_format(&self) -> ValueFormat
pub fn value_format(&self) -> ValueFormat
Defines the types of data in the ValueRecords.
sourcepub fn value_count(&self) -> u16
pub fn value_count(&self) -> u16
Number of ValueRecords — must equal glyphCount in the Coverage table.
sourcepub fn value_records(&self) -> ComputedArray<'a, ValueRecord>
pub fn value_records(&self) -> ComputedArray<'a, ValueRecord>
Array of ValueRecords — positioning values applied to glyphs.
sourceimpl<'a> TableRef<'a, PairPosFormat1Marker>
impl<'a> TableRef<'a, PairPosFormat1Marker>
sourcepub fn pos_format(&self) -> u16
pub fn pos_format(&self) -> u16
Format identifier: format = 1
sourcepub fn coverage_offset(&self) -> Offset16
pub fn coverage_offset(&self) -> Offset16
Offset to Coverage table, from beginning of PairPos subtable.
sourcepub fn coverage(&self) -> Result<CoverageTable<'a>, ReadError>
pub fn coverage(&self) -> Result<CoverageTable<'a>, ReadError>
Attempt to resolve coverage_offset.
sourcepub fn value_format1(&self) -> ValueFormat
pub fn value_format1(&self) -> ValueFormat
Defines the types of data in valueRecord1 — for the first glyph in the pair (may be zero).
sourcepub fn value_format2(&self) -> ValueFormat
pub fn value_format2(&self) -> ValueFormat
Defines the types of data in valueRecord2 — for the second glyph in the pair (may be zero).
sourcepub fn pair_set_count(&self) -> u16
pub fn pair_set_count(&self) -> u16
Number of PairSet tables
sourcepub fn pair_set_offsets(&self) -> &'a [BigEndian<Offset16>]
pub fn pair_set_offsets(&self) -> &'a [BigEndian<Offset16>]
Array of offsets to PairSet tables. Offsets are from beginning of PairPos subtable, ordered by Coverage Index.
sourceimpl<'a> TableRef<'a, PairSetMarker>
impl<'a> TableRef<'a, PairSetMarker>
sourcepub fn pair_value_count(&self) -> u16
pub fn pair_value_count(&self) -> u16
Number of PairValueRecords
sourcepub fn pair_value_records(&self) -> ComputedArray<'a, PairValueRecord>
pub fn pair_value_records(&self) -> ComputedArray<'a, PairValueRecord>
Array of PairValueRecords, ordered by glyph ID of the second glyph.
sourceimpl<'a> TableRef<'a, PairPosFormat2Marker>
impl<'a> TableRef<'a, PairPosFormat2Marker>
sourcepub fn pos_format(&self) -> u16
pub fn pos_format(&self) -> u16
Format identifier: format = 2
sourcepub fn coverage_offset(&self) -> Offset16
pub fn coverage_offset(&self) -> Offset16
Offset to Coverage table, from beginning of PairPos subtable.
sourcepub fn coverage(&self) -> Result<CoverageTable<'a>, ReadError>
pub fn coverage(&self) -> Result<CoverageTable<'a>, ReadError>
Attempt to resolve coverage_offset.
sourcepub fn value_format1(&self) -> ValueFormat
pub fn value_format1(&self) -> ValueFormat
ValueRecord definition — for the first glyph of the pair (may be zero).
sourcepub fn value_format2(&self) -> ValueFormat
pub fn value_format2(&self) -> ValueFormat
ValueRecord definition — for the second glyph of the pair (may be zero).
sourcepub fn class_def1_offset(&self) -> Offset16
pub fn class_def1_offset(&self) -> Offset16
Offset to ClassDef table, from beginning of PairPos subtable — for the first glyph of the pair.
sourcepub fn class_def1(&self) -> Result<ClassDef<'a>, ReadError>
pub fn class_def1(&self) -> Result<ClassDef<'a>, ReadError>
Attempt to resolve class_def1_offset.
sourcepub fn class_def2_offset(&self) -> Offset16
pub fn class_def2_offset(&self) -> Offset16
Offset to ClassDef table, from beginning of PairPos subtable — for the second glyph of the pair.
sourcepub fn class_def2(&self) -> Result<ClassDef<'a>, ReadError>
pub fn class_def2(&self) -> Result<ClassDef<'a>, ReadError>
Attempt to resolve class_def2_offset.
sourcepub fn class1_count(&self) -> u16
pub fn class1_count(&self) -> u16
Number of classes in classDef1 table — includes Class 0.
sourcepub fn class2_count(&self) -> u16
pub fn class2_count(&self) -> u16
Number of classes in classDef2 table — includes Class 0.
sourcepub fn class1_records(&self) -> ComputedArray<'a, Class1Record<'a>>
pub fn class1_records(&self) -> ComputedArray<'a, Class1Record<'a>>
Array of Class1 records, ordered by classes in classDef1.
sourceimpl<'a> TableRef<'a, CursivePosFormat1Marker>
impl<'a> TableRef<'a, CursivePosFormat1Marker>
sourcepub fn pos_format(&self) -> u16
pub fn pos_format(&self) -> u16
Format identifier: format = 1
sourcepub fn coverage_offset(&self) -> Offset16
pub fn coverage_offset(&self) -> Offset16
Offset to Coverage table, from beginning of CursivePos subtable.
sourcepub fn coverage(&self) -> Result<CoverageTable<'a>, ReadError>
pub fn coverage(&self) -> Result<CoverageTable<'a>, ReadError>
Attempt to resolve coverage_offset.
sourcepub fn entry_exit_count(&self) -> u16
pub fn entry_exit_count(&self) -> u16
Number of EntryExit records
sourcepub fn entry_exit_record(&self) -> &'a [EntryExitRecord]
pub fn entry_exit_record(&self) -> &'a [EntryExitRecord]
Array of EntryExit records, in Coverage index order.
sourceimpl<'a> TableRef<'a, MarkBasePosFormat1Marker>
impl<'a> TableRef<'a, MarkBasePosFormat1Marker>
sourcepub fn pos_format(&self) -> u16
pub fn pos_format(&self) -> u16
Format identifier: format = 1
sourcepub fn mark_coverage_offset(&self) -> Offset16
pub fn mark_coverage_offset(&self) -> Offset16
Offset to markCoverage table, from beginning of MarkBasePos subtable.
sourcepub fn mark_coverage(&self) -> Result<CoverageTable<'a>, ReadError>
pub fn mark_coverage(&self) -> Result<CoverageTable<'a>, ReadError>
Attempt to resolve mark_coverage_offset.
sourcepub fn base_coverage_offset(&self) -> Offset16
pub fn base_coverage_offset(&self) -> Offset16
Offset to baseCoverage table, from beginning of MarkBasePos subtable.
sourcepub fn base_coverage(&self) -> Result<CoverageTable<'a>, ReadError>
pub fn base_coverage(&self) -> Result<CoverageTable<'a>, ReadError>
Attempt to resolve base_coverage_offset.
sourcepub fn mark_class_count(&self) -> u16
pub fn mark_class_count(&self) -> u16
Number of classes defined for marks
sourcepub fn mark_array_offset(&self) -> Offset16
pub fn mark_array_offset(&self) -> Offset16
Offset to MarkArray table, from beginning of MarkBasePos subtable.
sourcepub fn mark_array(&self) -> Result<MarkArray<'a>, ReadError>
pub fn mark_array(&self) -> Result<MarkArray<'a>, ReadError>
Attempt to resolve mark_array_offset.
sourcepub fn base_array_offset(&self) -> Offset16
pub fn base_array_offset(&self) -> Offset16
Offset to BaseArray table, from beginning of MarkBasePos subtable.
sourcepub fn base_array(&self) -> Result<BaseArray<'a>, ReadError>
pub fn base_array(&self) -> Result<BaseArray<'a>, ReadError>
Attempt to resolve base_array_offset.
sourceimpl<'a> TableRef<'a, BaseArrayMarker>
impl<'a> TableRef<'a, BaseArrayMarker>
sourcepub fn base_count(&self) -> u16
pub fn base_count(&self) -> u16
Number of BaseRecords
sourcepub fn base_records(&self) -> ComputedArray<'a, BaseRecord<'a>>
pub fn base_records(&self) -> ComputedArray<'a, BaseRecord<'a>>
Array of BaseRecords, in order of baseCoverage Index.
sourceimpl<'a> TableRef<'a, MarkLigPosFormat1Marker>
impl<'a> TableRef<'a, MarkLigPosFormat1Marker>
sourcepub fn pos_format(&self) -> u16
pub fn pos_format(&self) -> u16
Format identifier: format = 1
sourcepub fn mark_coverage_offset(&self) -> Offset16
pub fn mark_coverage_offset(&self) -> Offset16
Offset to markCoverage table, from beginning of MarkLigPos subtable.
sourcepub fn mark_coverage(&self) -> Result<CoverageTable<'a>, ReadError>
pub fn mark_coverage(&self) -> Result<CoverageTable<'a>, ReadError>
Attempt to resolve mark_coverage_offset.
sourcepub fn ligature_coverage_offset(&self) -> Offset16
pub fn ligature_coverage_offset(&self) -> Offset16
Offset to ligatureCoverage table, from beginning of MarkLigPos subtable.
sourcepub fn ligature_coverage(&self) -> Result<CoverageTable<'a>, ReadError>
pub fn ligature_coverage(&self) -> Result<CoverageTable<'a>, ReadError>
Attempt to resolve ligature_coverage_offset.
sourcepub fn mark_class_count(&self) -> u16
pub fn mark_class_count(&self) -> u16
Number of defined mark classes
sourcepub fn mark_array_offset(&self) -> Offset16
pub fn mark_array_offset(&self) -> Offset16
Offset to MarkArray table, from beginning of MarkLigPos subtable.
sourcepub fn mark_array(&self) -> Result<MarkArray<'a>, ReadError>
pub fn mark_array(&self) -> Result<MarkArray<'a>, ReadError>
Attempt to resolve mark_array_offset.
sourcepub fn ligature_array_offset(&self) -> Offset16
pub fn ligature_array_offset(&self) -> Offset16
Offset to LigatureArray table, from beginning of MarkLigPos subtable.
sourcepub fn ligature_array(&self) -> Result<LigatureArray<'a>, ReadError>
pub fn ligature_array(&self) -> Result<LigatureArray<'a>, ReadError>
Attempt to resolve ligature_array_offset.
sourceimpl<'a> TableRef<'a, LigatureArrayMarker>
impl<'a> TableRef<'a, LigatureArrayMarker>
sourcepub fn ligature_count(&self) -> u16
pub fn ligature_count(&self) -> u16
Number of LigatureAttach table offsets
sourcepub fn ligature_attach_offsets(&self) -> &'a [BigEndian<Offset16>]
pub fn ligature_attach_offsets(&self) -> &'a [BigEndian<Offset16>]
Array of offsets to LigatureAttach tables. Offsets are from beginning of LigatureArray table, ordered by ligatureCoverage index.
sourcepub fn ligature_attaches(
&self
) -> impl Iterator<Item = Result<LigatureAttach<'a>, ReadError>> + 'a
pub fn ligature_attaches(
&self
) -> impl Iterator<Item = Result<LigatureAttach<'a>, ReadError>> + 'a
Attempt to resolve ligature_attach_offsets.
sourceimpl<'a> TableRef<'a, LigatureAttachMarker>
impl<'a> TableRef<'a, LigatureAttachMarker>
sourcepub fn component_count(&self) -> u16
pub fn component_count(&self) -> u16
Number of ComponentRecords in this ligature
sourcepub fn component_records(&self) -> ComputedArray<'a, ComponentRecord<'a>>
pub fn component_records(&self) -> ComputedArray<'a, ComponentRecord<'a>>
Array of Component records, ordered in writing direction.
sourceimpl<'a> TableRef<'a, MarkMarkPosFormat1Marker>
impl<'a> TableRef<'a, MarkMarkPosFormat1Marker>
sourcepub fn pos_format(&self) -> u16
pub fn pos_format(&self) -> u16
Format identifier: format = 1
sourcepub fn mark1_coverage_offset(&self) -> Offset16
pub fn mark1_coverage_offset(&self) -> Offset16
Offset to Combining Mark Coverage table, from beginning of MarkMarkPos subtable.
sourcepub fn mark1_coverage(&self) -> Result<CoverageTable<'a>, ReadError>
pub fn mark1_coverage(&self) -> Result<CoverageTable<'a>, ReadError>
Attempt to resolve mark1_coverage_offset.
sourcepub fn mark2_coverage_offset(&self) -> Offset16
pub fn mark2_coverage_offset(&self) -> Offset16
Offset to Base Mark Coverage table, from beginning of MarkMarkPos subtable.
sourcepub fn mark2_coverage(&self) -> Result<CoverageTable<'a>, ReadError>
pub fn mark2_coverage(&self) -> Result<CoverageTable<'a>, ReadError>
Attempt to resolve mark2_coverage_offset.
sourcepub fn mark_class_count(&self) -> u16
pub fn mark_class_count(&self) -> u16
Number of Combining Mark classes defined
sourcepub fn mark1_array_offset(&self) -> Offset16
pub fn mark1_array_offset(&self) -> Offset16
Offset to MarkArray table for mark1, from beginning of MarkMarkPos subtable.
sourcepub fn mark1_array(&self) -> Result<MarkArray<'a>, ReadError>
pub fn mark1_array(&self) -> Result<MarkArray<'a>, ReadError>
Attempt to resolve mark1_array_offset.
sourcepub fn mark2_array_offset(&self) -> Offset16
pub fn mark2_array_offset(&self) -> Offset16
Offset to Mark2Array table for mark2, from beginning of MarkMarkPos subtable.
sourcepub fn mark2_array(&self) -> Result<Mark2Array<'a>, ReadError>
pub fn mark2_array(&self) -> Result<Mark2Array<'a>, ReadError>
Attempt to resolve mark2_array_offset.
sourceimpl<'a> TableRef<'a, Mark2ArrayMarker>
impl<'a> TableRef<'a, Mark2ArrayMarker>
sourcepub fn mark2_count(&self) -> u16
pub fn mark2_count(&self) -> u16
Number of Mark2 records
sourcepub fn mark2_records(&self) -> ComputedArray<'a, Mark2Record<'a>>
pub fn mark2_records(&self) -> ComputedArray<'a, Mark2Record<'a>>
Array of Mark2Records, in Coverage order.
sourceimpl<'a, T> TableRef<'a, ExtensionPosFormat1Marker<T>>
impl<'a, T> TableRef<'a, ExtensionPosFormat1Marker<T>>
sourcepub fn pos_format(&self) -> u16
pub fn pos_format(&self) -> u16
Format identifier: format = 1
sourcepub fn extension_lookup_type(&self) -> u16
pub fn extension_lookup_type(&self) -> u16
Lookup type of subtable referenced by extensionOffset (i.e. the extension subtable).
sourcepub fn extension_offset(&self) -> Offset32
pub fn extension_offset(&self) -> Offset32
Offset to the extension subtable, of lookup type extensionLookupType, relative to the start of the ExtensionPosFormat1 subtable.
sourceimpl<'a> TableRef<'a, GsubMarker>
impl<'a> TableRef<'a, GsubMarker>
sourcepub fn version(&self) -> MajorMinor
pub fn version(&self) -> MajorMinor
The major and minor version of the GSUB table, as a tuple (u16, u16)
sourcepub fn script_list_offset(&self) -> Offset16
pub fn script_list_offset(&self) -> Offset16
Offset to ScriptList table, from beginning of GSUB table
sourcepub fn script_list(&self) -> Result<ScriptList<'a>, ReadError>
pub fn script_list(&self) -> Result<ScriptList<'a>, ReadError>
Attempt to resolve script_list_offset.
sourcepub fn feature_list_offset(&self) -> Offset16
pub fn feature_list_offset(&self) -> Offset16
Offset to FeatureList table, from beginning of GSUB table
sourcepub fn feature_list(&self) -> Result<FeatureList<'a>, ReadError>
pub fn feature_list(&self) -> Result<FeatureList<'a>, ReadError>
Attempt to resolve feature_list_offset.
sourcepub fn lookup_list_offset(&self) -> Offset16
pub fn lookup_list_offset(&self) -> Offset16
Offset to LookupList table, from beginning of GSUB table
sourcepub fn lookup_list(&self) -> Result<SubstitutionLookupList<'a>, ReadError>
pub fn lookup_list(&self) -> Result<SubstitutionLookupList<'a>, ReadError>
Attempt to resolve lookup_list_offset.
sourcepub fn feature_variations_offset(&self) -> Option<Nullable<Offset32>>
pub fn feature_variations_offset(&self) -> Option<Nullable<Offset32>>
Offset to FeatureVariations table, from beginning of the GSUB table (may be NULL)
sourcepub fn feature_variations(
&self
) -> Option<Result<FeatureVariations<'a>, ReadError>>
pub fn feature_variations(
&self
) -> Option<Result<FeatureVariations<'a>, ReadError>>
Attempt to resolve feature_variations_offset.
sourceimpl<'a> TableRef<'a, SingleSubstFormat1Marker>
impl<'a> TableRef<'a, SingleSubstFormat1Marker>
sourcepub fn subst_format(&self) -> u16
pub fn subst_format(&self) -> u16
Format identifier: format = 1
sourcepub fn coverage_offset(&self) -> Offset16
pub fn coverage_offset(&self) -> Offset16
Offset to Coverage table, from beginning of substitution subtable
sourcepub fn coverage(&self) -> Result<CoverageTable<'a>, ReadError>
pub fn coverage(&self) -> Result<CoverageTable<'a>, ReadError>
Attempt to resolve coverage_offset.
sourcepub fn delta_glyph_id(&self) -> i16
pub fn delta_glyph_id(&self) -> i16
Add to original glyph ID to get substitute glyph ID
sourceimpl<'a> TableRef<'a, SingleSubstFormat2Marker>
impl<'a> TableRef<'a, SingleSubstFormat2Marker>
sourcepub fn subst_format(&self) -> u16
pub fn subst_format(&self) -> u16
Format identifier: format = 2
sourcepub fn coverage_offset(&self) -> Offset16
pub fn coverage_offset(&self) -> Offset16
Offset to Coverage table, from beginning of substitution subtable
sourcepub fn coverage(&self) -> Result<CoverageTable<'a>, ReadError>
pub fn coverage(&self) -> Result<CoverageTable<'a>, ReadError>
Attempt to resolve coverage_offset.
sourcepub fn glyph_count(&self) -> u16
pub fn glyph_count(&self) -> u16
Number of glyph IDs in the substituteGlyphIDs array
sourcepub fn substitute_glyph_ids(&self) -> &'a [BigEndian<GlyphId>]
pub fn substitute_glyph_ids(&self) -> &'a [BigEndian<GlyphId>]
Array of substitute glyph IDs — ordered by Coverage index
sourceimpl<'a> TableRef<'a, MultipleSubstFormat1Marker>
impl<'a> TableRef<'a, MultipleSubstFormat1Marker>
sourcepub fn subst_format(&self) -> u16
pub fn subst_format(&self) -> u16
Format identifier: format = 1
sourcepub fn coverage_offset(&self) -> Offset16
pub fn coverage_offset(&self) -> Offset16
Offset to Coverage table, from beginning of substitution subtable
sourcepub fn coverage(&self) -> Result<CoverageTable<'a>, ReadError>
pub fn coverage(&self) -> Result<CoverageTable<'a>, ReadError>
Attempt to resolve coverage_offset.
sourcepub fn sequence_count(&self) -> u16
pub fn sequence_count(&self) -> u16
Number of Sequence table offsets in the sequenceOffsets array
sourcepub fn sequence_offsets(&self) -> &'a [BigEndian<Offset16>]
pub fn sequence_offsets(&self) -> &'a [BigEndian<Offset16>]
Array of offsets to Sequence tables. Offsets are from beginning of substitution subtable, ordered by Coverage index
sourceimpl<'a> TableRef<'a, SequenceMarker>
impl<'a> TableRef<'a, SequenceMarker>
sourcepub fn glyph_count(&self) -> u16
pub fn glyph_count(&self) -> u16
Number of glyph IDs in the substituteGlyphIDs array. This must always be greater than 0.
sourcepub fn substitute_glyph_ids(&self) -> &'a [BigEndian<GlyphId>]
pub fn substitute_glyph_ids(&self) -> &'a [BigEndian<GlyphId>]
String of glyph IDs to substitute
sourceimpl<'a> TableRef<'a, AlternateSubstFormat1Marker>
impl<'a> TableRef<'a, AlternateSubstFormat1Marker>
sourcepub fn subst_format(&self) -> u16
pub fn subst_format(&self) -> u16
Format identifier: format = 1
sourcepub fn coverage_offset(&self) -> Offset16
pub fn coverage_offset(&self) -> Offset16
Offset to Coverage table, from beginning of substitution subtable
sourcepub fn coverage(&self) -> Result<CoverageTable<'a>, ReadError>
pub fn coverage(&self) -> Result<CoverageTable<'a>, ReadError>
Attempt to resolve coverage_offset.
sourcepub fn alternate_set_count(&self) -> u16
pub fn alternate_set_count(&self) -> u16
Number of AlternateSet tables
sourcepub fn alternate_set_offsets(&self) -> &'a [BigEndian<Offset16>]
pub fn alternate_set_offsets(&self) -> &'a [BigEndian<Offset16>]
Array of offsets to AlternateSet tables. Offsets are from beginning of substitution subtable, ordered by Coverage index
sourcepub fn alternate_sets(
&self
) -> impl Iterator<Item = Result<AlternateSet<'a>, ReadError>> + 'a
pub fn alternate_sets(
&self
) -> impl Iterator<Item = Result<AlternateSet<'a>, ReadError>> + 'a
Attempt to resolve alternate_set_offsets.
sourceimpl<'a> TableRef<'a, AlternateSetMarker>
impl<'a> TableRef<'a, AlternateSetMarker>
sourcepub fn glyph_count(&self) -> u16
pub fn glyph_count(&self) -> u16
Number of glyph IDs in the alternateGlyphIDs array
sourcepub fn alternate_glyph_ids(&self) -> &'a [BigEndian<GlyphId>]
pub fn alternate_glyph_ids(&self) -> &'a [BigEndian<GlyphId>]
Array of alternate glyph IDs, in arbitrary order
sourceimpl<'a> TableRef<'a, LigatureSubstFormat1Marker>
impl<'a> TableRef<'a, LigatureSubstFormat1Marker>
sourcepub fn subst_format(&self) -> u16
pub fn subst_format(&self) -> u16
Format identifier: format = 1
sourcepub fn coverage_offset(&self) -> Offset16
pub fn coverage_offset(&self) -> Offset16
Offset to Coverage table, from beginning of substitution subtable
sourcepub fn coverage(&self) -> Result<CoverageTable<'a>, ReadError>
pub fn coverage(&self) -> Result<CoverageTable<'a>, ReadError>
Attempt to resolve coverage_offset.
sourcepub fn ligature_set_count(&self) -> u16
pub fn ligature_set_count(&self) -> u16
Number of LigatureSet tables
sourcepub fn ligature_set_offsets(&self) -> &'a [BigEndian<Offset16>]
pub fn ligature_set_offsets(&self) -> &'a [BigEndian<Offset16>]
Array of offsets to LigatureSet tables. Offsets are from beginning of substitution subtable, ordered by Coverage index
sourcepub fn ligature_sets(
&self
) -> impl Iterator<Item = Result<LigatureSet<'a>, ReadError>> + 'a
pub fn ligature_sets(
&self
) -> impl Iterator<Item = Result<LigatureSet<'a>, ReadError>> + 'a
Attempt to resolve ligature_set_offsets.
sourceimpl<'a> TableRef<'a, LigatureSetMarker>
impl<'a> TableRef<'a, LigatureSetMarker>
sourcepub fn ligature_count(&self) -> u16
pub fn ligature_count(&self) -> u16
Number of Ligature tables
sourcepub fn ligature_offsets(&self) -> &'a [BigEndian<Offset16>]
pub fn ligature_offsets(&self) -> &'a [BigEndian<Offset16>]
Array of offsets to Ligature tables. Offsets are from beginning of LigatureSet table, ordered by preference.
sourceimpl<'a> TableRef<'a, LigatureMarker>
impl<'a> TableRef<'a, LigatureMarker>
sourcepub fn ligature_glyph(&self) -> GlyphId
pub fn ligature_glyph(&self) -> GlyphId
glyph ID of ligature to substitute
sourcepub fn component_count(&self) -> u16
pub fn component_count(&self) -> u16
Number of components in the ligature
sourcepub fn component_glyph_ids(&self) -> &'a [BigEndian<GlyphId>]
pub fn component_glyph_ids(&self) -> &'a [BigEndian<GlyphId>]
Array of component glyph IDs — start with the second component, ordered in writing direction
sourceimpl<'a, T> TableRef<'a, ExtensionSubstFormat1Marker<T>>
impl<'a, T> TableRef<'a, ExtensionSubstFormat1Marker<T>>
sourcepub fn subst_format(&self) -> u16
pub fn subst_format(&self) -> u16
Format identifier. Set to 1.
sourcepub fn extension_lookup_type(&self) -> u16
pub fn extension_lookup_type(&self) -> u16
Lookup type of subtable referenced by extensionOffset (that is, the extension subtable).
sourcepub fn extension_offset(&self) -> Offset32
pub fn extension_offset(&self) -> Offset32
Offset to the extension subtable, of lookup type extensionLookupType, relative to the start of the ExtensionSubstFormat1 subtable.
sourceimpl<'a> TableRef<'a, ReverseChainSingleSubstFormat1Marker>
impl<'a> TableRef<'a, ReverseChainSingleSubstFormat1Marker>
sourcepub fn subst_format(&self) -> u16
pub fn subst_format(&self) -> u16
Format identifier: format = 1
sourcepub fn coverage_offset(&self) -> Offset16
pub fn coverage_offset(&self) -> Offset16
Offset to Coverage table, from beginning of substitution subtable.
sourcepub fn coverage(&self) -> Result<CoverageTable<'a>, ReadError>
pub fn coverage(&self) -> Result<CoverageTable<'a>, ReadError>
Attempt to resolve coverage_offset.
sourcepub fn backtrack_glyph_count(&self) -> u16
pub fn backtrack_glyph_count(&self) -> u16
Number of glyphs in the backtrack sequence.
sourcepub fn backtrack_coverage_offsets(&self) -> &'a [BigEndian<Offset16>]
pub fn backtrack_coverage_offsets(&self) -> &'a [BigEndian<Offset16>]
Array of offsets to coverage tables in backtrack sequence, in glyph sequence order.
sourcepub fn backtrack_coverages(
&self
) -> impl Iterator<Item = Result<CoverageTable<'a>, ReadError>> + 'a
pub fn backtrack_coverages(
&self
) -> impl Iterator<Item = Result<CoverageTable<'a>, ReadError>> + 'a
Attempt to resolve backtrack_coverage_offsets.
sourcepub fn lookahead_glyph_count(&self) -> u16
pub fn lookahead_glyph_count(&self) -> u16
Number of glyphs in lookahead sequence.
sourcepub fn lookahead_coverage_offsets(&self) -> &'a [BigEndian<Offset16>]
pub fn lookahead_coverage_offsets(&self) -> &'a [BigEndian<Offset16>]
Array of offsets to coverage tables in lookahead sequence, in glyph sequence order.
sourcepub fn lookahead_coverages(
&self
) -> impl Iterator<Item = Result<CoverageTable<'a>, ReadError>> + 'a
pub fn lookahead_coverages(
&self
) -> impl Iterator<Item = Result<CoverageTable<'a>, ReadError>> + 'a
Attempt to resolve lookahead_coverage_offsets.
sourcepub fn glyph_count(&self) -> u16
pub fn glyph_count(&self) -> u16
Number of glyph IDs in the substituteGlyphIDs array.
sourcepub fn substitute_glyph_ids(&self) -> &'a [BigEndian<GlyphId>]
pub fn substitute_glyph_ids(&self) -> &'a [BigEndian<GlyphId>]
Array of substitute glyph IDs — ordered by Coverage index.
sourceimpl<'a> TableRef<'a, ScriptListMarker>
impl<'a> TableRef<'a, ScriptListMarker>
sourcepub fn script_count(&self) -> u16
pub fn script_count(&self) -> u16
Number of ScriptRecords
sourcepub fn script_records(&self) -> &'a [ScriptRecord]
pub fn script_records(&self) -> &'a [ScriptRecord]
Array of ScriptRecords, listed alphabetically by script tag
sourceimpl<'a> TableRef<'a, ScriptMarker>
impl<'a> TableRef<'a, ScriptMarker>
sourcepub fn default_lang_sys_offset(&self) -> Nullable<Offset16>
pub fn default_lang_sys_offset(&self) -> Nullable<Offset16>
Offset to default LangSys table, from beginning of Script table — may be NULL
sourcepub fn default_lang_sys(&self) -> Option<Result<LangSys<'a>, ReadError>>
pub fn default_lang_sys(&self) -> Option<Result<LangSys<'a>, ReadError>>
Attempt to resolve default_lang_sys_offset.
sourcepub fn lang_sys_count(&self) -> u16
pub fn lang_sys_count(&self) -> u16
Number of LangSysRecords for this script — excluding the default LangSys
sourcepub fn lang_sys_records(&self) -> &'a [LangSysRecord]
pub fn lang_sys_records(&self) -> &'a [LangSysRecord]
Array of LangSysRecords, listed alphabetically by LangSys tag
sourceimpl<'a> TableRef<'a, LangSysMarker>
impl<'a> TableRef<'a, LangSysMarker>
sourcepub fn required_feature_index(&self) -> u16
pub fn required_feature_index(&self) -> u16
Index of a feature required for this language system; if no required features = 0xFFFF
sourcepub fn feature_index_count(&self) -> u16
pub fn feature_index_count(&self) -> u16
Number of feature index values for this language system — excludes the required feature
sourcepub fn feature_indices(&self) -> &'a [BigEndian<u16>]
pub fn feature_indices(&self) -> &'a [BigEndian<u16>]
Array of indices into the FeatureList, in arbitrary order
sourceimpl<'a> TableRef<'a, FeatureListMarker>
impl<'a> TableRef<'a, FeatureListMarker>
sourcepub fn feature_count(&self) -> u16
pub fn feature_count(&self) -> u16
Number of FeatureRecords in this table
sourcepub fn feature_records(&self) -> &'a [FeatureRecord]
pub fn feature_records(&self) -> &'a [FeatureRecord]
Array of FeatureRecords — zero-based (first feature has FeatureIndex = 0), listed alphabetically by feature tag
sourceimpl<'a> TableRef<'a, FeatureMarker>
impl<'a> TableRef<'a, FeatureMarker>
sourcepub fn feature_params_offset(&self) -> Nullable<Offset16>
pub fn feature_params_offset(&self) -> Nullable<Offset16>
Offset from start of Feature table to FeatureParams table, if defined for the feature and present, else NULL
sourcepub fn feature_params(&self) -> Option<Result<FeatureParams<'a>, ReadError>>
pub fn feature_params(&self) -> Option<Result<FeatureParams<'a>, ReadError>>
Attempt to resolve feature_params_offset.
sourcepub fn lookup_index_count(&self) -> u16
pub fn lookup_index_count(&self) -> u16
Number of LookupList indices for this feature
sourcepub fn lookup_list_indices(&self) -> &'a [BigEndian<u16>]
pub fn lookup_list_indices(&self) -> &'a [BigEndian<u16>]
Array of indices into the LookupList — zero-based (first lookup is LookupListIndex = 0)
sourceimpl<'a, T> TableRef<'a, LookupListMarker<T>>
impl<'a, T> TableRef<'a, LookupListMarker<T>>
sourcepub fn lookup_count(&self) -> u16
pub fn lookup_count(&self) -> u16
Number of lookups in this table
sourcepub fn lookup_offsets(&self) -> &'a [BigEndian<Offset16>]
pub fn lookup_offsets(&self) -> &'a [BigEndian<Offset16>]
Array of offsets to Lookup tables, from beginning of LookupList — zero based (first lookup is Lookup index = 0)
sourceimpl<'a, T> TableRef<'a, LookupMarker<T>>
impl<'a, T> TableRef<'a, LookupMarker<T>>
sourcepub fn lookup_type(&self) -> u16
pub fn lookup_type(&self) -> u16
Different enumerations for GSUB and GPOS
sourcepub fn lookup_flag(&self) -> u16
pub fn lookup_flag(&self) -> u16
Lookup qualifiers
sourcepub fn sub_table_count(&self) -> u16
pub fn sub_table_count(&self) -> u16
Number of subtables for this lookup
sourcepub fn subtable_offsets(&self) -> &'a [BigEndian<Offset16>]
pub fn subtable_offsets(&self) -> &'a [BigEndian<Offset16>]
Array of offsets to lookup subtables, from beginning of Lookup table
sourcepub fn subtables(&self) -> impl Iterator<Item = Result<T, ReadError>> + 'awhere
T: FontRead<'a>,
pub fn subtables(&self) -> impl Iterator<Item = Result<T, ReadError>> + 'awhere
T: FontRead<'a>,
Attempt to resolve subtable_offsets.
sourcepub fn mark_filtering_set(&self) -> u16
pub fn mark_filtering_set(&self) -> u16
Index (base 0) into GDEF mark glyph sets structure. This field is only present if the USE_MARK_FILTERING_SET lookup flag is set.
sourceimpl<'a> TableRef<'a, CoverageFormat1Marker>
impl<'a> TableRef<'a, CoverageFormat1Marker>
sourcepub fn coverage_format(&self) -> u16
pub fn coverage_format(&self) -> u16
Format identifier — format = 1
sourcepub fn glyph_count(&self) -> u16
pub fn glyph_count(&self) -> u16
Number of glyphs in the glyph array
sourcepub fn glyph_array(&self) -> &'a [BigEndian<GlyphId>]
pub fn glyph_array(&self) -> &'a [BigEndian<GlyphId>]
Array of glyph IDs — in numerical order
sourceimpl<'a> TableRef<'a, CoverageFormat2Marker>
impl<'a> TableRef<'a, CoverageFormat2Marker>
sourcepub fn coverage_format(&self) -> u16
pub fn coverage_format(&self) -> u16
Format identifier — format = 2
sourcepub fn range_count(&self) -> u16
pub fn range_count(&self) -> u16
Number of RangeRecords
sourcepub fn range_records(&self) -> &'a [RangeRecord]
pub fn range_records(&self) -> &'a [RangeRecord]
Array of glyph ranges — ordered by startGlyphID.
sourceimpl<'a> TableRef<'a, ClassDefFormat1Marker>
impl<'a> TableRef<'a, ClassDefFormat1Marker>
sourcepub fn class_format(&self) -> u16
pub fn class_format(&self) -> u16
Format identifier — format = 1
sourcepub fn start_glyph_id(&self) -> GlyphId
pub fn start_glyph_id(&self) -> GlyphId
First glyph ID of the classValueArray
sourcepub fn glyph_count(&self) -> u16
pub fn glyph_count(&self) -> u16
Size of the classValueArray
sourcepub fn class_value_array(&self) -> &'a [BigEndian<u16>]
pub fn class_value_array(&self) -> &'a [BigEndian<u16>]
Array of Class Values — one per glyph ID
sourceimpl<'a> TableRef<'a, ClassDefFormat2Marker>
impl<'a> TableRef<'a, ClassDefFormat2Marker>
sourcepub fn class_format(&self) -> u16
pub fn class_format(&self) -> u16
Format identifier — format = 2
sourcepub fn class_range_count(&self) -> u16
pub fn class_range_count(&self) -> u16
Number of ClassRangeRecords
sourcepub fn class_range_records(&self) -> &'a [ClassRangeRecord]
pub fn class_range_records(&self) -> &'a [ClassRangeRecord]
Array of ClassRangeRecords — ordered by startGlyphID
sourceimpl<'a> TableRef<'a, SequenceContextFormat1Marker>
impl<'a> TableRef<'a, SequenceContextFormat1Marker>
sourcepub fn coverage_offset(&self) -> Offset16
pub fn coverage_offset(&self) -> Offset16
Offset to Coverage table, from beginning of SequenceContextFormat1 table
sourcepub fn coverage(&self) -> Result<CoverageTable<'a>, ReadError>
pub fn coverage(&self) -> Result<CoverageTable<'a>, ReadError>
Attempt to resolve coverage_offset.
sourcepub fn seq_rule_set_count(&self) -> u16
pub fn seq_rule_set_count(&self) -> u16
Number of SequenceRuleSet tables
sourcepub fn seq_rule_set_offsets(&self) -> &'a [BigEndian<Nullable<Offset16>>]
pub fn seq_rule_set_offsets(&self) -> &'a [BigEndian<Nullable<Offset16>>]
Array of offsets to SequenceRuleSet tables, from beginning of SequenceContextFormat1 table (offsets may be NULL)
sourcepub fn seq_rule_sets(
&self
) -> impl Iterator<Item = Option<Result<SequenceRuleSet<'a>, ReadError>>> + 'a
pub fn seq_rule_sets(
&self
) -> impl Iterator<Item = Option<Result<SequenceRuleSet<'a>, ReadError>>> + 'a
Attempt to resolve seq_rule_set_offsets.
sourceimpl<'a> TableRef<'a, SequenceRuleSetMarker>
impl<'a> TableRef<'a, SequenceRuleSetMarker>
sourcepub fn seq_rule_count(&self) -> u16
pub fn seq_rule_count(&self) -> u16
Number of SequenceRule tables
sourcepub fn seq_rule_offsets(&self) -> &'a [BigEndian<Offset16>]
pub fn seq_rule_offsets(&self) -> &'a [BigEndian<Offset16>]
Array of offsets to SequenceRule tables, from beginning of the SequenceRuleSet table
sourcepub fn seq_rules(
&self
) -> impl Iterator<Item = Result<SequenceRule<'a>, ReadError>> + 'a
pub fn seq_rules(
&self
) -> impl Iterator<Item = Result<SequenceRule<'a>, ReadError>> + 'a
Attempt to resolve seq_rule_offsets.
sourceimpl<'a> TableRef<'a, SequenceRuleMarker>
impl<'a> TableRef<'a, SequenceRuleMarker>
sourcepub fn glyph_count(&self) -> u16
pub fn glyph_count(&self) -> u16
Number of glyphs in the input glyph sequence
sourcepub fn seq_lookup_count(&self) -> u16
pub fn seq_lookup_count(&self) -> u16
Number of SequenceLookupRecords
sourcepub fn input_sequence(&self) -> &'a [BigEndian<u16>]
pub fn input_sequence(&self) -> &'a [BigEndian<u16>]
Array of input glyph IDs—starting with the second glyph
sourcepub fn seq_lookup_records(&self) -> &'a [SequenceLookupRecord]
pub fn seq_lookup_records(&self) -> &'a [SequenceLookupRecord]
Array of Sequence lookup records
sourceimpl<'a> TableRef<'a, SequenceContextFormat2Marker>
impl<'a> TableRef<'a, SequenceContextFormat2Marker>
sourcepub fn coverage_offset(&self) -> Offset16
pub fn coverage_offset(&self) -> Offset16
Offset to Coverage table, from beginning of SequenceContextFormat2 table
sourcepub fn coverage(&self) -> Result<CoverageTable<'a>, ReadError>
pub fn coverage(&self) -> Result<CoverageTable<'a>, ReadError>
Attempt to resolve coverage_offset.
sourcepub fn class_def_offset(&self) -> Offset16
pub fn class_def_offset(&self) -> Offset16
Offset to ClassDef table, from beginning of SequenceContextFormat2 table
sourcepub fn class_def(&self) -> Result<ClassDef<'a>, ReadError>
pub fn class_def(&self) -> Result<ClassDef<'a>, ReadError>
Attempt to resolve class_def_offset.
sourcepub fn class_seq_rule_set_count(&self) -> u16
pub fn class_seq_rule_set_count(&self) -> u16
Number of ClassSequenceRuleSet tables
sourcepub fn class_seq_rule_set_offsets(&self) -> &'a [BigEndian<Nullable<Offset16>>]
pub fn class_seq_rule_set_offsets(&self) -> &'a [BigEndian<Nullable<Offset16>>]
Array of offsets to ClassSequenceRuleSet tables, from beginning of SequenceContextFormat2 table (may be NULL)
sourcepub fn class_seq_rule_sets(
&self
) -> impl Iterator<Item = Option<Result<ClassSequenceRuleSet<'a>, ReadError>>> + 'a
pub fn class_seq_rule_sets(
&self
) -> impl Iterator<Item = Option<Result<ClassSequenceRuleSet<'a>, ReadError>>> + 'a
Attempt to resolve class_seq_rule_set_offsets.
sourceimpl<'a> TableRef<'a, ClassSequenceRuleSetMarker>
impl<'a> TableRef<'a, ClassSequenceRuleSetMarker>
sourcepub fn class_seq_rule_count(&self) -> u16
pub fn class_seq_rule_count(&self) -> u16
Number of ClassSequenceRule tables
sourcepub fn class_seq_rule_offsets(&self) -> &'a [BigEndian<Offset16>]
pub fn class_seq_rule_offsets(&self) -> &'a [BigEndian<Offset16>]
Array of offsets to ClassSequenceRule tables, from beginning of ClassSequenceRuleSet table
sourcepub fn class_seq_rules(
&self
) -> impl Iterator<Item = Result<ClassSequenceRule<'a>, ReadError>> + 'a
pub fn class_seq_rules(
&self
) -> impl Iterator<Item = Result<ClassSequenceRule<'a>, ReadError>> + 'a
Attempt to resolve class_seq_rule_offsets.
sourceimpl<'a> TableRef<'a, ClassSequenceRuleMarker>
impl<'a> TableRef<'a, ClassSequenceRuleMarker>
sourcepub fn glyph_count(&self) -> u16
pub fn glyph_count(&self) -> u16
Number of glyphs to be matched
sourcepub fn seq_lookup_count(&self) -> u16
pub fn seq_lookup_count(&self) -> u16
Number of SequenceLookupRecords
sourcepub fn input_sequence(&self) -> &'a [BigEndian<u16>]
pub fn input_sequence(&self) -> &'a [BigEndian<u16>]
Sequence of classes to be matched to the input glyph sequence, beginning with the second glyph position
sourcepub fn seq_lookup_records(&self) -> &'a [SequenceLookupRecord]
pub fn seq_lookup_records(&self) -> &'a [SequenceLookupRecord]
Array of SequenceLookupRecords
sourceimpl<'a> TableRef<'a, SequenceContextFormat3Marker>
impl<'a> TableRef<'a, SequenceContextFormat3Marker>
sourcepub fn glyph_count(&self) -> u16
pub fn glyph_count(&self) -> u16
Number of glyphs in the input sequence
sourcepub fn seq_lookup_count(&self) -> u16
pub fn seq_lookup_count(&self) -> u16
Number of SequenceLookupRecords
sourcepub fn coverage_offsets(&self) -> &'a [BigEndian<Offset16>]
pub fn coverage_offsets(&self) -> &'a [BigEndian<Offset16>]
Array of offsets to Coverage tables, from beginning of SequenceContextFormat3 subtable
sourcepub fn coverages(
&self
) -> impl Iterator<Item = Result<CoverageTable<'a>, ReadError>> + 'a
pub fn coverages(
&self
) -> impl Iterator<Item = Result<CoverageTable<'a>, ReadError>> + 'a
Attempt to resolve coverage_offsets.
sourcepub fn seq_lookup_records(&self) -> &'a [SequenceLookupRecord]
pub fn seq_lookup_records(&self) -> &'a [SequenceLookupRecord]
Array of SequenceLookupRecords
sourceimpl<'a> TableRef<'a, ChainedSequenceContextFormat1Marker>
impl<'a> TableRef<'a, ChainedSequenceContextFormat1Marker>
sourcepub fn coverage_offset(&self) -> Offset16
pub fn coverage_offset(&self) -> Offset16
Offset to Coverage table, from beginning of ChainSequenceContextFormat1 table
sourcepub fn coverage(&self) -> Result<CoverageTable<'a>, ReadError>
pub fn coverage(&self) -> Result<CoverageTable<'a>, ReadError>
Attempt to resolve coverage_offset.
sourcepub fn chained_seq_rule_set_count(&self) -> u16
pub fn chained_seq_rule_set_count(&self) -> u16
Number of ChainedSequenceRuleSet tables
sourcepub fn chained_seq_rule_set_offsets(
&self
) -> &'a [BigEndian<Nullable<Offset16>>]
pub fn chained_seq_rule_set_offsets(
&self
) -> &'a [BigEndian<Nullable<Offset16>>]
Array of offsets to ChainedSeqRuleSet tables, from beginning of ChainedSequenceContextFormat1 table (may be NULL)
sourcepub fn chained_seq_rule_sets(
&self
) -> impl Iterator<Item = Option<Result<ChainedSequenceRuleSet<'a>, ReadError>>> + 'a
pub fn chained_seq_rule_sets(
&self
) -> impl Iterator<Item = Option<Result<ChainedSequenceRuleSet<'a>, ReadError>>> + 'a
Attempt to resolve chained_seq_rule_set_offsets.
sourceimpl<'a> TableRef<'a, ChainedSequenceRuleSetMarker>
impl<'a> TableRef<'a, ChainedSequenceRuleSetMarker>
sourcepub fn chained_seq_rule_count(&self) -> u16
pub fn chained_seq_rule_count(&self) -> u16
Number of ChainedSequenceRule tables
sourcepub fn chained_seq_rule_offsets(&self) -> &'a [BigEndian<Offset16>]
pub fn chained_seq_rule_offsets(&self) -> &'a [BigEndian<Offset16>]
Array of offsets to ChainedSequenceRule tables, from beginning of ChainedSequenceRuleSet table
sourcepub fn chained_seq_rules(
&self
) -> impl Iterator<Item = Result<ChainedSequenceRule<'a>, ReadError>> + 'a
pub fn chained_seq_rules(
&self
) -> impl Iterator<Item = Result<ChainedSequenceRule<'a>, ReadError>> + 'a
Attempt to resolve chained_seq_rule_offsets.
sourceimpl<'a> TableRef<'a, ChainedSequenceRuleMarker>
impl<'a> TableRef<'a, ChainedSequenceRuleMarker>
sourcepub fn backtrack_glyph_count(&self) -> u16
pub fn backtrack_glyph_count(&self) -> u16
Number of glyphs in the backtrack sequence
sourcepub fn backtrack_sequence(&self) -> &'a [BigEndian<u16>]
pub fn backtrack_sequence(&self) -> &'a [BigEndian<u16>]
Array of backtrack glyph IDs
sourcepub fn input_glyph_count(&self) -> u16
pub fn input_glyph_count(&self) -> u16
Number of glyphs in the input sequence
sourcepub fn input_sequence(&self) -> &'a [BigEndian<u16>]
pub fn input_sequence(&self) -> &'a [BigEndian<u16>]
Array of input glyph IDs—start with second glyph
sourcepub fn lookahead_glyph_count(&self) -> u16
pub fn lookahead_glyph_count(&self) -> u16
Number of glyphs in the lookahead sequence
sourcepub fn lookahead_sequence(&self) -> &'a [BigEndian<u16>]
pub fn lookahead_sequence(&self) -> &'a [BigEndian<u16>]
Array of lookahead glyph IDs
sourcepub fn seq_lookup_count(&self) -> u16
pub fn seq_lookup_count(&self) -> u16
Number of SequenceLookupRecords
sourcepub fn seq_lookup_records(&self) -> &'a [SequenceLookupRecord]
pub fn seq_lookup_records(&self) -> &'a [SequenceLookupRecord]
Array of SequenceLookupRecords
sourceimpl<'a> TableRef<'a, ChainedSequenceContextFormat2Marker>
impl<'a> TableRef<'a, ChainedSequenceContextFormat2Marker>
sourcepub fn coverage_offset(&self) -> Offset16
pub fn coverage_offset(&self) -> Offset16
Offset to Coverage table, from beginning of ChainedSequenceContextFormat2 table
sourcepub fn coverage(&self) -> Result<CoverageTable<'a>, ReadError>
pub fn coverage(&self) -> Result<CoverageTable<'a>, ReadError>
Attempt to resolve coverage_offset.
sourcepub fn backtrack_class_def_offset(&self) -> Offset16
pub fn backtrack_class_def_offset(&self) -> Offset16
Offset to ClassDef table containing backtrack sequence context, from beginning of ChainedSequenceContextFormat2 table
sourcepub fn backtrack_class_def(&self) -> Result<ClassDef<'a>, ReadError>
pub fn backtrack_class_def(&self) -> Result<ClassDef<'a>, ReadError>
Attempt to resolve backtrack_class_def_offset.
sourcepub fn input_class_def_offset(&self) -> Offset16
pub fn input_class_def_offset(&self) -> Offset16
Offset to ClassDef table containing input sequence context, from beginning of ChainedSequenceContextFormat2 table
sourcepub fn input_class_def(&self) -> Result<ClassDef<'a>, ReadError>
pub fn input_class_def(&self) -> Result<ClassDef<'a>, ReadError>
Attempt to resolve input_class_def_offset.
sourcepub fn lookahead_class_def_offset(&self) -> Offset16
pub fn lookahead_class_def_offset(&self) -> Offset16
Offset to ClassDef table containing lookahead sequence context, from beginning of ChainedSequenceContextFormat2 table
sourcepub fn lookahead_class_def(&self) -> Result<ClassDef<'a>, ReadError>
pub fn lookahead_class_def(&self) -> Result<ClassDef<'a>, ReadError>
Attempt to resolve lookahead_class_def_offset.
sourcepub fn chained_class_seq_rule_set_count(&self) -> u16
pub fn chained_class_seq_rule_set_count(&self) -> u16
Number of ChainedClassSequenceRuleSet tables
sourcepub fn chained_class_seq_rule_set_offsets(
&self
) -> &'a [BigEndian<Nullable<Offset16>>]
pub fn chained_class_seq_rule_set_offsets(
&self
) -> &'a [BigEndian<Nullable<Offset16>>]
Array of offsets to ChainedClassSequenceRuleSet tables, from beginning of ChainedSequenceContextFormat2 table (may be NULL)
sourcepub fn chained_class_seq_rule_sets(
&self
) -> impl Iterator<Item = Option<Result<ChainedClassSequenceRuleSet<'a>, ReadError>>> + 'a
pub fn chained_class_seq_rule_sets(
&self
) -> impl Iterator<Item = Option<Result<ChainedClassSequenceRuleSet<'a>, ReadError>>> + 'a
Attempt to resolve chained_class_seq_rule_set_offsets.
sourceimpl<'a> TableRef<'a, ChainedClassSequenceRuleSetMarker>
impl<'a> TableRef<'a, ChainedClassSequenceRuleSetMarker>
sourcepub fn chained_class_seq_rule_count(&self) -> u16
pub fn chained_class_seq_rule_count(&self) -> u16
Number of ChainedClassSequenceRule tables
sourcepub fn chained_class_seq_rule_offsets(&self) -> &'a [BigEndian<Offset16>]
pub fn chained_class_seq_rule_offsets(&self) -> &'a [BigEndian<Offset16>]
Array of offsets to ChainedClassSequenceRule tables, from beginning of ChainedClassSequenceRuleSet
sourcepub fn chained_class_seq_rules(
&self
) -> impl Iterator<Item = Result<ChainedClassSequenceRule<'a>, ReadError>> + 'a
pub fn chained_class_seq_rules(
&self
) -> impl Iterator<Item = Result<ChainedClassSequenceRule<'a>, ReadError>> + 'a
Attempt to resolve chained_class_seq_rule_offsets.
sourceimpl<'a> TableRef<'a, ChainedClassSequenceRuleMarker>
impl<'a> TableRef<'a, ChainedClassSequenceRuleMarker>
sourcepub fn backtrack_glyph_count(&self) -> u16
pub fn backtrack_glyph_count(&self) -> u16
Number of glyphs in the backtrack sequence
sourcepub fn backtrack_sequence(&self) -> &'a [BigEndian<u16>]
pub fn backtrack_sequence(&self) -> &'a [BigEndian<u16>]
Array of backtrack-sequence classes
sourcepub fn input_glyph_count(&self) -> u16
pub fn input_glyph_count(&self) -> u16
Total number of glyphs in the input sequence
sourcepub fn input_sequence(&self) -> &'a [BigEndian<u16>]
pub fn input_sequence(&self) -> &'a [BigEndian<u16>]
Array of input sequence classes, beginning with the second glyph position
sourcepub fn lookahead_glyph_count(&self) -> u16
pub fn lookahead_glyph_count(&self) -> u16
Number of glyphs in the lookahead sequence
sourcepub fn lookahead_sequence(&self) -> &'a [BigEndian<u16>]
pub fn lookahead_sequence(&self) -> &'a [BigEndian<u16>]
Array of lookahead-sequence classes
sourcepub fn seq_lookup_count(&self) -> u16
pub fn seq_lookup_count(&self) -> u16
Number of SequenceLookupRecords
sourcepub fn seq_lookup_records(&self) -> &'a [SequenceLookupRecord]
pub fn seq_lookup_records(&self) -> &'a [SequenceLookupRecord]
Array of SequenceLookupRecords
sourceimpl<'a> TableRef<'a, ChainedSequenceContextFormat3Marker>
impl<'a> TableRef<'a, ChainedSequenceContextFormat3Marker>
sourcepub fn backtrack_glyph_count(&self) -> u16
pub fn backtrack_glyph_count(&self) -> u16
Number of glyphs in the backtrack sequence
sourcepub fn backtrack_coverage_offsets(&self) -> &'a [BigEndian<Offset16>]
pub fn backtrack_coverage_offsets(&self) -> &'a [BigEndian<Offset16>]
Array of offsets to coverage tables for the backtrack sequence
sourcepub fn backtrack_coverages(
&self
) -> impl Iterator<Item = Result<CoverageTable<'a>, ReadError>> + 'a
pub fn backtrack_coverages(
&self
) -> impl Iterator<Item = Result<CoverageTable<'a>, ReadError>> + 'a
Attempt to resolve backtrack_coverage_offsets.
sourcepub fn input_glyph_count(&self) -> u16
pub fn input_glyph_count(&self) -> u16
Number of glyphs in the input sequence
sourcepub fn input_coverage_offsets(&self) -> &'a [BigEndian<Offset16>]
pub fn input_coverage_offsets(&self) -> &'a [BigEndian<Offset16>]
Array of offsets to coverage tables for the input sequence
sourcepub fn input_coverages(
&self
) -> impl Iterator<Item = Result<CoverageTable<'a>, ReadError>> + 'a
pub fn input_coverages(
&self
) -> impl Iterator<Item = Result<CoverageTable<'a>, ReadError>> + 'a
Attempt to resolve input_coverage_offsets.
sourcepub fn lookahead_glyph_count(&self) -> u16
pub fn lookahead_glyph_count(&self) -> u16
Number of glyphs in the lookahead sequence
sourcepub fn lookahead_coverage_offsets(&self) -> &'a [BigEndian<Offset16>]
pub fn lookahead_coverage_offsets(&self) -> &'a [BigEndian<Offset16>]
Array of offsets to coverage tables for the lookahead sequence
sourcepub fn lookahead_coverages(
&self
) -> impl Iterator<Item = Result<CoverageTable<'a>, ReadError>> + 'a
pub fn lookahead_coverages(
&self
) -> impl Iterator<Item = Result<CoverageTable<'a>, ReadError>> + 'a
Attempt to resolve lookahead_coverage_offsets.
sourcepub fn seq_lookup_count(&self) -> u16
pub fn seq_lookup_count(&self) -> u16
Number of SequenceLookupRecords
sourcepub fn seq_lookup_records(&self) -> &'a [SequenceLookupRecord]
pub fn seq_lookup_records(&self) -> &'a [SequenceLookupRecord]
Array of SequenceLookupRecords
sourceimpl<'a> TableRef<'a, DeviceMarker>
impl<'a> TableRef<'a, DeviceMarker>
sourcepub fn start_size(&self) -> u16
pub fn start_size(&self) -> u16
Smallest size to correct, in ppem
sourcepub fn delta_format(&self) -> DeltaFormat
pub fn delta_format(&self) -> DeltaFormat
Format of deltaValue array data: 0x0001, 0x0002, or 0x0003
sourcepub fn delta_value(&self) -> &'a [BigEndian<u16>]
pub fn delta_value(&self) -> &'a [BigEndian<u16>]
Array of compressed data
sourceimpl<'a> TableRef<'a, VariationIndexMarker>
impl<'a> TableRef<'a, VariationIndexMarker>
sourcepub fn delta_set_outer_index(&self) -> u16
pub fn delta_set_outer_index(&self) -> u16
A delta-set outer index — used to select an item variation data subtable within the item variation store.
sourcepub fn delta_set_inner_index(&self) -> u16
pub fn delta_set_inner_index(&self) -> u16
A delta-set inner index — used to select a delta-set row within an item variation data subtable.
sourcepub fn delta_format(&self) -> u16
pub fn delta_format(&self) -> u16
Format, = 0x8000
sourceimpl<'a> TableRef<'a, FeatureVariationsMarker>
impl<'a> TableRef<'a, FeatureVariationsMarker>
pub fn version(&self) -> MajorMinor
sourcepub fn feature_variation_record_count(&self) -> u32
pub fn feature_variation_record_count(&self) -> u32
Number of feature variation records.
sourcepub fn feature_variation_records(&self) -> &'a [FeatureVariationRecord]
pub fn feature_variation_records(&self) -> &'a [FeatureVariationRecord]
Array of feature variation records.
sourceimpl<'a> TableRef<'a, ConditionSetMarker>
impl<'a> TableRef<'a, ConditionSetMarker>
sourcepub fn condition_count(&self) -> u16
pub fn condition_count(&self) -> u16
Number of conditions for this condition set.
sourcepub fn condition_offsets(&self) -> &'a [BigEndian<Offset32>]
pub fn condition_offsets(&self) -> &'a [BigEndian<Offset32>]
Array of offsets to condition tables, from beginning of the ConditionSet table.
sourcepub fn conditions(
&self
) -> impl Iterator<Item = Result<ConditionFormat1<'a>, ReadError>> + 'a
pub fn conditions(
&self
) -> impl Iterator<Item = Result<ConditionFormat1<'a>, ReadError>> + 'a
Attempt to resolve condition_offsets.
sourceimpl<'a> TableRef<'a, ConditionFormat1Marker>
impl<'a> TableRef<'a, ConditionFormat1Marker>
sourcepub fn axis_index(&self) -> u16
pub fn axis_index(&self) -> u16
Index (zero-based) for the variation axis within the ‘fvar’ table.
sourcepub fn filter_range_min_value(&self) -> F2Dot14
pub fn filter_range_min_value(&self) -> F2Dot14
Minimum value of the font variation instances that satisfy this condition.
sourcepub fn filter_range_max_value(&self) -> F2Dot14
pub fn filter_range_max_value(&self) -> F2Dot14
Maximum value of the font variation instances that satisfy this condition.
sourceimpl<'a> TableRef<'a, FeatureTableSubstitutionMarker>
impl<'a> TableRef<'a, FeatureTableSubstitutionMarker>
sourcepub fn version(&self) -> MajorMinor
pub fn version(&self) -> MajorMinor
Major & minor version of the table: (1, 0)
sourcepub fn substitution_count(&self) -> u16
pub fn substitution_count(&self) -> u16
Number of feature table substitution records.
sourcepub fn substitutions(&self) -> &'a [FeatureTableSubstitutionRecord]
pub fn substitutions(&self) -> &'a [FeatureTableSubstitutionRecord]
Array of feature table substitution records.
sourceimpl<'a> TableRef<'a, SizeParamsMarker>
impl<'a> TableRef<'a, SizeParamsMarker>
sourcepub fn design_size(&self) -> u16
pub fn design_size(&self) -> u16
The first value represents the design size in 720/inch units (decipoints).
The design size entry must be non-zero. When there is a design size but no recommended size range, the rest of the array will consist of zeros.
sourcepub fn identifier(&self) -> u16
pub fn identifier(&self) -> u16
The second value has no independent meaning, but serves as an identifier that associates fonts in a subfamily.
All fonts which share a Typographic or Font Family name and which differ only by size range shall have the same subfamily value, and no fonts which differ in weight or style shall have the same subfamily value. If this value is zero, the remaining fields in the array will be ignored.
sourcepub fn name_entry(&self) -> u16
pub fn name_entry(&self) -> u16
The third value enables applications to use a single name for the subfamily identified by the second value.
If the preceding value is non-zero, this value must be set in the range 256 – 32767 (inclusive). It records the value of a field in the ‘name’ table, which must contain English-language strings encoded in Windows Unicode and Macintosh Roman, and may contain additional strings localized to other scripts and languages. Each of these strings is the name an application should use, in combination with the family name, to represent the subfamily in a menu. Applications will choose the appropriate version based on their selection criteria.
sourcepub fn range_start(&self) -> u16
pub fn range_start(&self) -> u16
The fourth and fifth values represent the small end of the recommended usage range (exclusive) and the large end of the recommended usage range (inclusive), stored in 720/inch units (decipoints).
Ranges must not overlap, and should generally be contiguous.
pub fn range_end(&self) -> u16
sourceimpl<'a> TableRef<'a, StylisticSetParamsMarker>
impl<'a> TableRef<'a, StylisticSetParamsMarker>
pub fn version(&self) -> u16
sourcepub fn ui_name_id(&self) -> u16
pub fn ui_name_id(&self) -> u16
The ‘name’ table name ID that specifies a string (or strings, for multiple languages) for a user-interface label for this feature.
The value of uiLabelNameId is expected to be in the font-specific name ID range (256-32767), though that is not a requirement in this Feature Parameters specification. The user-interface label for the feature can be provided in multiple languages. An English string should be included as a fallback. The string should be kept to a minimal length to fit comfortably with different application interfaces.
sourceimpl<'a> TableRef<'a, CharacterVariantParamsMarker>
impl<'a> TableRef<'a, CharacterVariantParamsMarker>
sourcepub fn feat_ui_label_name_id(&self) -> u16
pub fn feat_ui_label_name_id(&self) -> u16
The ‘name’ table name ID that specifies a string (or strings, for multiple languages) for a user-interface label for this feature. (May be NULL.)
sourcepub fn feat_ui_tooltip_text_name_id(&self) -> u16
pub fn feat_ui_tooltip_text_name_id(&self) -> u16
The ‘name’ table name ID that specifies a string (or strings, for multiple languages) that an application can use for tooltip text for this feature. (May be NULL.)
sourcepub fn sample_text_name_id(&self) -> u16
pub fn sample_text_name_id(&self) -> u16
The ‘name’ table name ID that specifies sample text that illustrates the effect of this feature. (May be NULL.)
sourcepub fn num_named_parameters(&self) -> u16
pub fn num_named_parameters(&self) -> u16
Number of named parameters. (May be zero.)
sourcepub fn first_param_ui_label_name_id(&self) -> u16
pub fn first_param_ui_label_name_id(&self) -> u16
The first ‘name’ table name ID used to specify strings for user-interface labels for the feature parameters. (Must be zero if numParameters is zero.)
sourcepub fn char_count(&self) -> u16
pub fn char_count(&self) -> u16
The count of characters for which this feature provides glyph variants. (May be zero.)
sourceimpl<'a, T: FontRead<'a>> TableRef<'a, LookupMarker<T>>
impl<'a, T: FontRead<'a>> TableRef<'a, LookupMarker<T>>
pub fn get_subtable(&self, offset: Offset16) -> Result<T, ReadError>
sourceimpl<'a, T> TableRef<'a, T>
impl<'a, T> TableRef<'a, T>
sourcepub fn resolve_offset<O: Offset, R: FontRead<'a>>(
&self,
offset: O
) -> Result<R, ReadError>
pub fn resolve_offset<O: Offset, R: FontRead<'a>>(
&self,
offset: O
) -> Result<R, ReadError>
Resolve the provided offset from the start of this table.
sourcepub fn offset_data(&self) -> FontData<'a>
pub fn offset_data(&self) -> FontData<'a>
Return a reference to this table’s raw data.
We use this in the compile crate to resolve offsets.
sourceimpl<'a> TableRef<'a, CmapMarker>
impl<'a> TableRef<'a, CmapMarker>
sourcepub fn num_tables(&self) -> u16
pub fn num_tables(&self) -> u16
Number of encoding tables that follow.
pub fn encoding_records(&self) -> &'a [EncodingRecord]
sourceimpl<'a> TableRef<'a, Cmap0Marker>
impl<'a> TableRef<'a, Cmap0Marker>
sourceimpl<'a> TableRef<'a, Cmap2Marker>
impl<'a> TableRef<'a, Cmap2Marker>
sourceimpl<'a> TableRef<'a, Cmap4Marker>
impl<'a> TableRef<'a, Cmap4Marker>
sourcepub fn language(&self) -> u16
pub fn language(&self) -> u16
For requirements on use of the language field, see “Use of the language field in ‘cmap’ subtables” in this document.
sourcepub fn seg_count_x2(&self) -> u16
pub fn seg_count_x2(&self) -> u16
2 × segCount.
sourcepub fn search_range(&self) -> u16
pub fn search_range(&self) -> u16
Maximum power of 2 less than or equal to segCount, times 2 ((2floor(log2(segCount))) * 2, where “” is an exponentiation operator)
sourcepub fn entry_selector(&self) -> u16
pub fn entry_selector(&self) -> u16
Log2 of the maximum power of 2 less than or equal to numTables (log2(searchRange/2), which is equal to floor(log2(segCount)))
sourcepub fn range_shift(&self) -> u16
pub fn range_shift(&self) -> u16
segCount times 2, minus searchRange ((segCount * 2) - searchRange)
sourcepub fn end_code(&self) -> &'a [BigEndian<u16>]
pub fn end_code(&self) -> &'a [BigEndian<u16>]
End characterCode for each segment, last=0xFFFF.
sourcepub fn start_code(&self) -> &'a [BigEndian<u16>]
pub fn start_code(&self) -> &'a [BigEndian<u16>]
Start character code for each segment.
sourcepub fn id_range_offsets(&self) -> &'a [BigEndian<u16>]
pub fn id_range_offsets(&self) -> &'a [BigEndian<u16>]
Offsets into glyphIdArray or 0
sourcepub fn glyph_id_array(&self) -> &'a [BigEndian<u16>]
pub fn glyph_id_array(&self) -> &'a [BigEndian<u16>]
Glyph index array (arbitrary length)
sourceimpl<'a> TableRef<'a, Cmap6Marker>
impl<'a> TableRef<'a, Cmap6Marker>
sourcepub fn language(&self) -> u16
pub fn language(&self) -> u16
For requirements on use of the language field, see “Use of the language field in ‘cmap’ subtables” in this document.
sourcepub fn first_code(&self) -> u16
pub fn first_code(&self) -> u16
First character code of subrange.
sourcepub fn entry_count(&self) -> u16
pub fn entry_count(&self) -> u16
Number of character codes in subrange.
sourcepub fn glyph_id_array(&self) -> &'a [BigEndian<u16>]
pub fn glyph_id_array(&self) -> &'a [BigEndian<u16>]
Array of glyph index values for character codes in the range.
sourceimpl<'a> TableRef<'a, Cmap8Marker>
impl<'a> TableRef<'a, Cmap8Marker>
sourcepub fn language(&self) -> u32
pub fn language(&self) -> u32
For requirements on use of the language field, see “Use of the language field in ‘cmap’ subtables” in this document.
sourcepub fn is32(&self) -> &'a [BigEndian<u8>]
pub fn is32(&self) -> &'a [BigEndian<u8>]
Tightly packed array of bits (8K bytes total) indicating whether the particular 16-bit (index) value is the start of a 32-bit character code
sourcepub fn num_groups(&self) -> u32
pub fn num_groups(&self) -> u32
Number of groupings which follow
sourcepub fn groups(&self) -> &'a [SequentialMapGroup]
pub fn groups(&self) -> &'a [SequentialMapGroup]
Array of SequentialMapGroup records.
sourceimpl<'a> TableRef<'a, Cmap10Marker>
impl<'a> TableRef<'a, Cmap10Marker>
sourcepub fn language(&self) -> u32
pub fn language(&self) -> u32
For requirements on use of the language field, see “Use of the language field in ‘cmap’ subtables” in this document.
sourcepub fn start_char_code(&self) -> u32
pub fn start_char_code(&self) -> u32
First character code covered
sourcepub fn glyph_id_array(&self) -> &'a [BigEndian<u16>]
pub fn glyph_id_array(&self) -> &'a [BigEndian<u16>]
Array of glyph indices for the character codes covered
sourceimpl<'a> TableRef<'a, Cmap12Marker>
impl<'a> TableRef<'a, Cmap12Marker>
sourcepub fn language(&self) -> u32
pub fn language(&self) -> u32
For requirements on use of the language field, see “Use of the language field in ‘cmap’ subtables” in this document.
sourcepub fn num_groups(&self) -> u32
pub fn num_groups(&self) -> u32
Number of groupings which follow
sourcepub fn groups(&self) -> &'a [SequentialMapGroup]
pub fn groups(&self) -> &'a [SequentialMapGroup]
Array of SequentialMapGroup records.
sourceimpl<'a> TableRef<'a, Cmap13Marker>
impl<'a> TableRef<'a, Cmap13Marker>
sourcepub fn language(&self) -> u32
pub fn language(&self) -> u32
For requirements on use of the language field, see “Use of the language field in ‘cmap’ subtables” in this document.
sourcepub fn num_groups(&self) -> u32
pub fn num_groups(&self) -> u32
Number of groupings which follow
sourcepub fn groups(&self) -> &'a [ConstantMapGroup]
pub fn groups(&self) -> &'a [ConstantMapGroup]
Array of ConstantMapGroup records.
sourceimpl<'a> TableRef<'a, Cmap14Marker>
impl<'a> TableRef<'a, Cmap14Marker>
sourcepub fn num_var_selector_records(&self) -> u32
pub fn num_var_selector_records(&self) -> u32
Number of variation Selector Records
sourcepub fn var_selector(&self) -> &'a [VariationSelector]
pub fn var_selector(&self) -> &'a [VariationSelector]
Array of VariationSelector records.
sourceimpl<'a> TableRef<'a, DefaultUvsMarker>
impl<'a> TableRef<'a, DefaultUvsMarker>
sourcepub fn num_unicode_value_ranges(&self) -> u32
pub fn num_unicode_value_ranges(&self) -> u32
Number of Unicode character ranges.
sourcepub fn ranges(&self) -> &'a [UnicodeRange]
pub fn ranges(&self) -> &'a [UnicodeRange]
Array of UnicodeRange records.
sourceimpl<'a> TableRef<'a, SimpleGlyphMarker>
impl<'a> TableRef<'a, SimpleGlyphMarker>
sourcepub fn number_of_contours(&self) -> i16
pub fn number_of_contours(&self) -> i16
If the number of contours is greater than or equal to zero, this is a simple glyph. If negative, this is a composite glyph — the value -1 should be used for composite glyphs.
sourcepub fn end_pts_of_contours(&self) -> &'a [BigEndian<u16>]
pub fn end_pts_of_contours(&self) -> &'a [BigEndian<u16>]
Array of point indices for the last point of each contour, in increasing numeric order
sourcepub fn instruction_length(&self) -> u16
pub fn instruction_length(&self) -> u16
Total number of bytes for instructions. If instructionLength is zero, no instructions are present for this glyph, and this field is followed directly by the flags field.
sourcepub fn instructions(&self) -> &'a [BigEndian<u8>]
pub fn instructions(&self) -> &'a [BigEndian<u8>]
Array of instruction byte code for the glyph.
sourceimpl<'a> TableRef<'a, CompositeGlyphMarker>
impl<'a> TableRef<'a, CompositeGlyphMarker>
sourcepub fn number_of_contours(&self) -> i16
pub fn number_of_contours(&self) -> i16
If the number of contours is greater than or equal to zero, this is a simple glyph. If negative, this is a composite glyph — the value -1 should be used for composite glyphs.
sourceimpl<'a> TableRef<'a, SimpleGlyphMarker>
impl<'a> TableRef<'a, SimpleGlyphMarker>
pub fn iter_points(&self) -> PointIter<'_>ⓘNotable traits for PointIter<'a>impl<'a> Iterator for PointIter<'a> type Item = GlyphPoint;
sourceimpl<'a> TableRef<'a, CompositeGlyphMarker>
impl<'a> TableRef<'a, CompositeGlyphMarker>
pub fn iter_components(&self) -> ComponentIter<'a>ⓘNotable traits for ComponentIter<'_>impl Iterator for ComponentIter<'_> type Item = Component;
sourceimpl<'a> TableRef<'a, HeadMarker>
impl<'a> TableRef<'a, HeadMarker>
sourcepub fn version(&self) -> MajorMinor
pub fn version(&self) -> MajorMinor
Version number of the font header table, set to (1, 0)
sourcepub fn font_revision(&self) -> Fixed
pub fn font_revision(&self) -> Fixed
Set by font manufacturer.
sourcepub fn checksum_adjustment(&self) -> u32
pub fn checksum_adjustment(&self) -> u32
To compute: set it to 0, sum the entire font as uint32, then store 0xB1B0AFBA - sum. If the font is used as a component in a font collection file, the value of this field will be invalidated by changes to the file structure and font table directory, and must be ignored.
sourcepub fn magic_number(&self) -> u32
pub fn magic_number(&self) -> u32
Set to 0x5F0F3CF5.
sourcepub fn units_per_em(&self) -> u16
pub fn units_per_em(&self) -> u16
Set to a value from 16 to 16384. Any value in this range is valid. In fonts that have TrueType outlines, a power of 2 is recommended as this allows performance optimizations in some rasterizers.
sourcepub fn created(&self) -> LongDateTime
pub fn created(&self) -> LongDateTime
Number of seconds since 12:00 midnight that started January 1st 1904 in GMT/UTC time zone.
sourcepub fn modified(&self) -> LongDateTime
pub fn modified(&self) -> LongDateTime
Number of seconds since 12:00 midnight that started January 1st 1904 in GMT/UTC time zone.
sourcepub fn lowest_rec_ppem(&self) -> u16
pub fn lowest_rec_ppem(&self) -> u16
Smallest readable size in pixels.
sourcepub fn font_direction_hint(&self) -> i16
pub fn font_direction_hint(&self) -> i16
Deprecated (Set to 2).
sourcepub fn index_to_loc_format(&self) -> i16
pub fn index_to_loc_format(&self) -> i16
0 for short offsets (Offset16), 1 for long (Offset32).
sourcepub fn glyph_data_format(&self) -> i16
pub fn glyph_data_format(&self) -> i16
0 for current format.
sourceimpl<'a> TableRef<'a, HheaMarker>
impl<'a> TableRef<'a, HheaMarker>
sourcepub fn version(&self) -> MajorMinor
pub fn version(&self) -> MajorMinor
The major/minor version (1, 0)
sourcepub fn line_gap(&self) -> FWord
pub fn line_gap(&self) -> FWord
Typographic line gap. Negative LineGap values are treated as zero in some legacy platform implementations.
sourcepub fn advance_width_max(&self) -> UfWord
pub fn advance_width_max(&self) -> UfWord
Maximum advance width value in ‘hmtx’ table.
sourcepub fn min_left_side_bearing(&self) -> FWord
pub fn min_left_side_bearing(&self) -> FWord
Minimum left sidebearing value in ‘hmtx’ table for glyphs with contours (empty glyphs should be ignored).
sourcepub fn min_right_side_bearing(&self) -> FWord
pub fn min_right_side_bearing(&self) -> FWord
Minimum right sidebearing value; calculated as min(aw - (lsb + xMax - xMin)) for glyphs with contours (empty glyphs should be ignored).
sourcepub fn x_max_extent(&self) -> FWord
pub fn x_max_extent(&self) -> FWord
Max(lsb + (xMax - xMin)).
sourcepub fn caret_slope_rise(&self) -> i16
pub fn caret_slope_rise(&self) -> i16
Used to calculate the slope of the cursor (rise/run); 1 for vertical.
sourcepub fn caret_slope_run(&self) -> i16
pub fn caret_slope_run(&self) -> i16
0 for vertical.
sourcepub fn caret_offset(&self) -> i16
pub fn caret_offset(&self) -> i16
The amount by which a slanted highlight on a glyph needs to be shifted to produce the best appearance. Set to 0 for non-slanted fonts
sourcepub fn metric_data_format(&self) -> i16
pub fn metric_data_format(&self) -> i16
0 for current format.
sourcepub fn number_of_h_metrics(&self) -> u16
pub fn number_of_h_metrics(&self) -> u16
Number of hMetric entries in ‘hmtx’ table
sourceimpl<'a> TableRef<'a, HmtxMarker>
impl<'a> TableRef<'a, HmtxMarker>
sourcepub fn h_metrics(&self) -> &'a [LongHorMetric]
pub fn h_metrics(&self) -> &'a [LongHorMetric]
Paired advance width and left side bearing values for each glyph. Records are indexed by glyph ID.
sourcepub fn left_side_bearings(&self) -> &'a [BigEndian<i16>]
pub fn left_side_bearings(&self) -> &'a [BigEndian<i16>]
Left side bearings for glyph IDs greater than or equal to numberOfHMetrics.
sourceimpl<'a> TableRef<'a, MaxpMarker>
impl<'a> TableRef<'a, MaxpMarker>
sourcepub fn version(&self) -> Version16Dot16
pub fn version(&self) -> Version16Dot16
The version: 0x00005000 for version 0.5, 0x00010000 for version 1.0.
sourcepub fn num_glyphs(&self) -> u16
pub fn num_glyphs(&self) -> u16
The number of glyphs in the font.
sourcepub fn max_points(&self) -> Option<u16>
pub fn max_points(&self) -> Option<u16>
Maximum points in a non-composite glyph.
sourcepub fn max_contours(&self) -> Option<u16>
pub fn max_contours(&self) -> Option<u16>
Maximum contours in a non-composite glyph.
sourcepub fn max_composite_points(&self) -> Option<u16>
pub fn max_composite_points(&self) -> Option<u16>
Maximum points in a composite glyph.
sourcepub fn max_composite_contours(&self) -> Option<u16>
pub fn max_composite_contours(&self) -> Option<u16>
Maximum contours in a composite glyph.
sourcepub fn max_zones(&self) -> Option<u16>
pub fn max_zones(&self) -> Option<u16>
1 if instructions do not use the twilight zone (Z0), or 2 if instructions do use Z0; should be set to 2 in most cases.
sourcepub fn max_twilight_points(&self) -> Option<u16>
pub fn max_twilight_points(&self) -> Option<u16>
Maximum points used in Z0.
sourcepub fn max_storage(&self) -> Option<u16>
pub fn max_storage(&self) -> Option<u16>
Number of Storage Area locations.
sourcepub fn max_function_defs(&self) -> Option<u16>
pub fn max_function_defs(&self) -> Option<u16>
Number of FDEFs, equal to the highest function number + 1.
sourcepub fn max_instruction_defs(&self) -> Option<u16>
pub fn max_instruction_defs(&self) -> Option<u16>
Number of IDEFs.
sourcepub fn max_stack_elements(&self) -> Option<u16>
pub fn max_stack_elements(&self) -> Option<u16>
Maximum stack depth across Font Program (‘fpgm’ table), CVT Program (‘prep’ table) and all glyph instructions (in the ‘glyf’ table).
sourcepub fn max_size_of_instructions(&self) -> Option<u16>
pub fn max_size_of_instructions(&self) -> Option<u16>
Maximum byte count for glyph instructions.
sourcepub fn max_component_elements(&self) -> Option<u16>
pub fn max_component_elements(&self) -> Option<u16>
Maximum number of components referenced at “top level” for any composite glyph.
sourcepub fn max_component_depth(&self) -> Option<u16>
pub fn max_component_depth(&self) -> Option<u16>
Maximum levels of recursion; 1 for simple components.
sourceimpl<'a> TableRef<'a, NameMarker>
impl<'a> TableRef<'a, NameMarker>
sourcepub fn storage_offset(&self) -> u16
pub fn storage_offset(&self) -> u16
Offset to start of string storage (from start of table).
sourcepub fn name_record(&self) -> &'a [NameRecord]
pub fn name_record(&self) -> &'a [NameRecord]
The name records where count is the number of records.
sourcepub fn lang_tag_count(&self) -> Option<u16>
pub fn lang_tag_count(&self) -> Option<u16>
Number of language-tag records.
sourcepub fn lang_tag_record(&self) -> Option<&'a [LangTagRecord]>
pub fn lang_tag_record(&self) -> Option<&'a [LangTagRecord]>
The language-tag records where langTagCount is the number of records.
sourceimpl<'a> TableRef<'a, NameMarker>
impl<'a> TableRef<'a, NameMarker>
sourcepub fn string_data(&self) -> FontData<'a>
pub fn string_data(&self) -> FontData<'a>
The FontData containing the encoded name strings.
sourceimpl<'a> TableRef<'a, PostMarker>
impl<'a> TableRef<'a, PostMarker>
sourcepub fn version(&self) -> Version16Dot16
pub fn version(&self) -> Version16Dot16
0x00010000 for version 1.0 0x00020000 for version 2.0 0x00025000 for version 2.5 (deprecated) 0x00030000 for version 3.0
sourcepub fn italic_angle(&self) -> Fixed
pub fn italic_angle(&self) -> Fixed
Italic angle in counter-clockwise degrees from the vertical. Zero for upright text, negative for text that leans to the right (forward).
sourcepub fn underline_position(&self) -> FWord
pub fn underline_position(&self) -> FWord
This is the suggested distance of the top of the underline from the baseline (negative values indicate below baseline). The PostScript definition of this FontInfo dictionary key (the y coordinate of the center of the stroke) is not used for historical reasons. The value of the PostScript key may be calculated by subtracting half the underlineThickness from the value of this field.
sourcepub fn underline_thickness(&self) -> FWord
pub fn underline_thickness(&self) -> FWord
Suggested values for the underline thickness. In general, the underline thickness should match the thickness of the underscore character (U+005F LOW LINE), and should also match the strikeout thickness, which is specified in the OS/2 table.
sourcepub fn is_fixed_pitch(&self) -> u32
pub fn is_fixed_pitch(&self) -> u32
Set to 0 if the font is proportionally spaced, non-zero if the font is not proportionally spaced (i.e. monospaced).
sourcepub fn min_mem_type42(&self) -> u32
pub fn min_mem_type42(&self) -> u32
Minimum memory usage when an OpenType font is downloaded.
sourcepub fn max_mem_type42(&self) -> u32
pub fn max_mem_type42(&self) -> u32
Maximum memory usage when an OpenType font is downloaded.
sourcepub fn min_mem_type1(&self) -> u32
pub fn min_mem_type1(&self) -> u32
Minimum memory usage when an OpenType font is downloaded as a Type 1 font.
sourcepub fn max_mem_type1(&self) -> u32
pub fn max_mem_type1(&self) -> u32
Maximum memory usage when an OpenType font is downloaded as a Type 1 font.
sourcepub fn num_glyphs(&self) -> Option<u16>
pub fn num_glyphs(&self) -> Option<u16>
Number of glyphs (this should be the same as numGlyphs in ‘maxp’ table).
sourcepub fn glyph_name_index(&self) -> Option<&'a [BigEndian<u16>]>
pub fn glyph_name_index(&self) -> Option<&'a [BigEndian<u16>]>
Array of indices into the string data. See below for details.
sourcepub fn string_data(&self) -> Option<VarLenArray<'a, PString<'a>>>
pub fn string_data(&self) -> Option<VarLenArray<'a, PString<'a>>>
Storage for the string data.
sourceimpl<'a> TableRef<'a, TableDirectoryMarker>
impl<'a> TableRef<'a, TableDirectoryMarker>
sourcepub fn sfnt_version(&self) -> u32
pub fn sfnt_version(&self) -> u32
0x00010000 or 0x4F54544F
sourcepub fn num_tables(&self) -> u16
pub fn num_tables(&self) -> u16
Number of tables.
pub fn search_range(&self) -> u16
pub fn entry_selector(&self) -> u16
pub fn range_shift(&self) -> u16
sourcepub fn table_records(&self) -> &'a [TableRecord]
pub fn table_records(&self) -> &'a [TableRecord]
Table records array—one for each top-level table in the font