pub type Cblc<'a> = TableRef<'a, CblcMarker>;
Expand description
The Color Bitmap Location table
Aliased Type§
struct Cblc<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Cblc<'a>
impl<'a> Cblc<'a>
Sourcepub fn major_version(&self) -> u16
pub fn major_version(&self) -> u16
Major version of the CBLC table, = 3.
Sourcepub fn minor_version(&self) -> u16
pub fn minor_version(&self) -> u16
Minor version of CBLC table, = 0.
Sourcepub fn bitmap_sizes(&self) -> &'a [BitmapSize]
pub fn bitmap_sizes(&self) -> &'a [BitmapSize]
BitmapSize records array.
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.