Fix SVG output for user fonts producing non-color glyphs

Signed-off-by: Raman Varabets <gitlab-20240601-da2ef10c@cyborgize.sg>
This commit is contained in:
Raman Varabets 2024-06-30 12:47:50 +08:00
parent 56b02f9c1d
commit 99cfefdda1
2 changed files with 4 additions and 0 deletions

View file

@ -1403,6 +1403,10 @@ _cairo_svg_document_emit_color_glyph_data (cairo_svg_document_t *document,
if (unlikely (status)) {
return status;
}
// User fonts always have a recording surface, but they may not be color glyphs.
if (scaled_glyph->color_glyph_set && !scaled_glyph->color_glyph) {
return CAIRO_INT_STATUS_UNSUPPORTED;
}
cairo_surface_t *paginated_surface = _cairo_svg_surface_create_for_document (document,
CAIRO_CONTENT_COLOR_ALPHA,

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB