pub type Sbix<'a> = TableRef<'a, SbixMarker>;
Expand description
The sbix (Standard Bitmap Graphics) table
Aliased Type§
struct Sbix<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Sbix<'a>
impl<'a> Sbix<'a>
Sourcepub fn flags(&self) -> HeaderFlags
pub fn flags(&self) -> HeaderFlags
Bit 0: Set to 1. Bit 1: Draw outlines. Bits 2 to 15: reserved (set to 0).
Sourcepub fn num_strikes(&self) -> u32
pub fn num_strikes(&self) -> u32
Number of bitmap strikes.
Sourcepub fn strike_offsets(&self) -> &'a [BigEndian<Offset32>]
pub fn strike_offsets(&self) -> &'a [BigEndian<Offset32>]
Offsets from the beginning of the ‘sbix’ table to data for each individual bitmap strike.
Sourcepub fn strikes(&self) -> ArrayOfOffsets<'a, Strike<'a>, Offset32>
pub fn strikes(&self) -> ArrayOfOffsets<'a, Strike<'a>, Offset32>
A dynamically resolving wrapper for strike_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.