Since 11.2.0HarfBuzz.font_t to work upon
The glyph ID
HarfBuzz.paint_funcs_t to paint with
User data to pass to paint callbacks
The index of the font's color palette to use
The foreground color, unpremultipled
true if glyph was painted, false otherwise
Paints a color glyph.
This function is similar to, but lower-level than,
hb_font_paint_glyph(). It is suitable for clients that need more control. If there are no color glyphs available, it will returnfalse. The client can then fall back tohb_font_draw_glyph_or_fail()for the monochrome outline glyph.The painting instructions are returned by way of calls to the callbacks of the
funcsobject, withpaint_datapassed to them.If the font has color palettes (see
hb_ot_color_has_palettes()), thenpalette_indexselects the palette to use. If the font only has one palette, this will be 0.