pub type PaintColrLayers<'a> = TableRef<'a, PaintColrLayersMarker>;
Expand description
PaintColrLayers table
Aliased Type§
struct PaintColrLayers<'a> { /* private fields */ }
Implementations§
Source§impl<'a> PaintColrLayers<'a>
impl<'a> PaintColrLayers<'a>
Sourcepub fn num_layers(&self) -> u8
pub fn num_layers(&self) -> u8
Number of offsets to paint tables to read from LayerList.
Sourcepub fn first_layer_index(&self) -> u32
pub fn first_layer_index(&self) -> u32
Index (base 0) into the LayerList.
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.