Struct allsorts_no_std::bitmap::cbdt::CBLCTable [−][src]
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
impl<'a> CBLCTable<'a>
[src]
pub fn find_strike(
&self,
glyph_id: u16,
target_ppem: u8,
max_bit_depth: BitDepth
) -> Option<MatchingStrike<'_, 'a>>
[src]
&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
impl<'a> ReadBinary<'a> for CBLCTable<'a>
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<'a, T> ReadBinaryDep<'a> for T where
T: ReadBinary<'a>,
[src]
T: ReadBinary<'a>,
type Args = ()
type HostType = <T as ReadBinary<'a>>::HostType
pub fn read_dep(
&mut ReadCtxt<'a>,
<T as ReadBinaryDep<'a>>::Args
) -> Result<<T as ReadBinaryDep<'a>>::HostType, ParseError>
[src]
&mut ReadCtxt<'a>,
<T as ReadBinaryDep<'a>>::Args
) -> Result<<T as ReadBinaryDep<'a>>::HostType, ParseError>
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,