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

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.