daegun

Color

A COLR glyph renders to a scene rather than a coverage map, since it has more than one color in it.

let scene = font.render_colr_glyph(gid, 48.0, &[], 0).expect("is a color glyph");
scene.width;
scene.height;
scene.rgba;   // straight alpha RGBA8

colr_v1_paint hands back the paint graph itself if you would rather walk it,colr_layers covers COLR v0, and the palette index selects among CPAL palettes.

Type to search.