Skip to content

Fix foreground colors in FT/SVG/COLRv1

Adrian Johnson requested to merge ajohnson/cairo:fix-ft-foreground into master

This updates cairo-ft-font.c and the SVG and COLRv1 renderers to handle foreground colors the same way as user fonts.

One thing I noticed while working in cairo-ft-font is it uses FreeType to render COLRv0 images but also has _cairo_ft_scaled_glyph_init_record_colr_v0_glyph() to support CAIRO_SCALED_GLYPH_INFO_RECORDING_SURFACE for printing. Should we keep using FT to render COLRv0 images or render the recording surface like we do for COLRv1 and SVG?

Merge request reports