pub struct CBLCTable<'a> {
pub major_version: u16,
pub minor_version: u16,
pub bitmap_sizes: Vec<BitmapSize<'a>>,
}
Expand description
CBLC
— Color Bitmap Location Table
Fields
major_version: u16
Major version of this table.
2 for EBLC
, 3, for CBLC
minor_version: u16
Minor version of this table.
bitmap_sizes: Vec<BitmapSize<'a>>
Array of “strikes” available for this font.
Implementations
sourceimpl<'a> CBLCTable<'a>
impl<'a> CBLCTable<'a>
sourcepub fn find_strike(
&self,
glyph_id: u16,
target_ppem: u8,
max_bit_depth: BitDepth
) -> Option<MatchingStrike<'_, 'a>>
pub fn find_strike(
&self,
glyph_id: u16,
target_ppem: u8,
max_bit_depth: BitDepth
) -> Option<MatchingStrike<'_, 'a>>
Find a strike matching the supplied criteria.
glyph_id
is the glyph to lookup.target_ppem
is the desired size. If an exact match can’t be found the nearest one will be returned, favouring being oversize vs. undersized.max_bit_depth
is the maximum accepted bit depth of the bitmap to return. If you accept all bit depths then useBitDepth::ThirtyTwo
.
Trait Implementations
sourceimpl<'a> ReadBinary<'a> for CBLCTable<'a>
impl<'a> ReadBinary<'a> for CBLCTable<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for CBLCTable<'a>
impl<'a> Send for CBLCTable<'a>
impl<'a> Sync for CBLCTable<'a>
impl<'a> Unpin for CBLCTable<'a>
impl<'a> UnwindSafe for CBLCTable<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more