pub type LayerList<'a> = TableRef<'a, LayerListMarker>;
Expand description
LayerList table
Aliased Type§
struct LayerList<'a> { /* private fields */ }
Implementations§
Source§impl<'a> LayerList<'a>
impl<'a> LayerList<'a>
pub fn num_layers(&self) -> u32
Sourcepub fn paint_offsets(&self) -> &'a [BigEndian<Offset32>]
pub fn paint_offsets(&self) -> &'a [BigEndian<Offset32>]
Offsets to Paint tables.
Sourcepub fn paints(&self) -> ArrayOfOffsets<'a, Paint<'a>, Offset32>
pub fn paints(&self) -> ArrayOfOffsets<'a, Paint<'a>, Offset32>
A dynamically resolving wrapper for paint_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.