pub fn lookup<'b>(
    glyph_id: u16,
    matching_strike: &MatchingStrike<'_, '_>,
    cbdt: &CBDTTable<'b>
) -> Result<Option<GlyphBitmapData<'b>>, ParseError>
Expand description

Lookup a glyph in the supplied strike.

  • glyph_id is the glyph to lookup.
  • matching_strike the strike to lookup the bitmap in. Acquired via find_strike.
  • cbdt is a reference to the colour bitmap data table.

The returned GlyphBitmapData contains metrics and data for the bitmap, if found.

Note: that some fonts may contain bitmaps with 0x0 dimensions, so be prepared to handle those.