Struct allsorts_no_std::bitmap::cbdt::CBLCTable[][src]

pub struct CBLCTable<'a> {
    pub major_version: u16,
    pub minor_version: u16,
    pub bitmap_sizes: Vec<BitmapSize<'a>>,
}

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]

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 use BitDepth::ThirtyTwo.

Trait Implementations

impl<'a> ReadBinary<'a> for CBLCTable<'a>[src]

type HostType = Self

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<'a, T> ReadBinaryDep<'a> for T where
    T: ReadBinary<'a>, 
[src]

type Args = ()

type HostType = <T as ReadBinary<'a>>::HostType

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.