mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-20 02:18:08 +02:00
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:
parent
56b02f9c1d
commit
99cfefdda1
2 changed files with 4 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
BIN
test/reference/user-font-color.svg11.ref.png
Normal file
BIN
test/reference/user-font-color.svg11.ref.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
Loading…
Add table
Reference in a new issue