ot_color_glyph_reference_png


Description:


[ Version ( since = "2.1.0" ) ]
public Blob ot_color_glyph_reference_png (Font font, Codepoint glyph)

Fetches the PNG image for a glyph.

This function takes a font object, not a face object, as input. To get an optimally sized PNG blob, the PPEM values must be set on the font object. If PPEM is unset, the blob returned will be the largest PNG available.

If the glyph has no PNG image, the singleton empty blob is returned.

Parameters:

font

Font to work upon

glyph

a glyph index

Returns:

An Blob containing the PNG image for the glyph, if available


Namespace: HarfBuzz