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: u16Major version of this table.
2 for EBLC, 3, for CBLC
minor_version: u16Minor version of this table.
bitmap_sizes: Vec<BitmapSize<'a>>Array of “strikes” available for this font.
Implementations§
Source§impl<'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_idis the glyph to lookup.target_ppemis the desired size. If an exact match can’t be found the nearest one will be returned, favouring being oversize vs. undersized.max_bit_depthis the maximum accepted bit depth of the bitmap to return. If you accept all bit depths then useBitDepth::ThirtyTwo.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for CBLCTable<'a>
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more