pub type AttachList<'a> = TableRef<'a, AttachListMarker>;
Expand description
Aliased Type§
struct AttachList<'a> { /* private fields */ }
Implementations§
Source§impl<'a> AttachList<'a>
impl<'a> AttachList<'a>
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) -> ArrayOfOffsets<'a, AttachPoint<'a>, Offset16>
pub fn attach_points(&self) -> ArrayOfOffsets<'a, AttachPoint<'a>, Offset16>
A dynamically resolving wrapper for attach_point_offsets
.
Source§impl<'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.