diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2023-01-22 15:55:06 +1030 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2023-01-29 18:08:42 +1030 |
commit | 79501baaa19f90954af0dda5910396375d21845e (patch) | |
tree | acf1d1ceabb7db7900b9e12673aac1f96f17b10f /src/cairo-recording-surface.c | |
parent | 47a932bffc16323b58e3c8f9bc3fe0d821838a84 (diff) | |
download | cairo-79501baaa19f90954af0dda5910396375d21845e.tar.gz |
PDF Type 3 color fonts
This implements Type 3 color fonts for PDF for any font with a
CAIRO_SCALED_GLYPH_INFO_RECORDING_SURFACE. This includes user-fonts,
SVG fonts, and COLR fonts.
Glyphs with foreground colors are not yet implemented as Type 3 glyphs
and will be rendered as images by cairo-surface.
Diffstat (limited to 'src/cairo-recording-surface.c')
-rw-r--r-- | src/cairo-recording-surface.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cairo-recording-surface.c b/src/cairo-recording-surface.c index e87320523..158ea16ba 100644 --- a/src/cairo-recording-surface.c +++ b/src/cairo-recording-surface.c @@ -1231,6 +1231,14 @@ _cairo_recording_surface_tag (void *abstract_surface, return status; } +static cairo_bool_t +_cairo_recording_surface_supports_color_glyph (void *abstract_surface, + cairo_scaled_font_t *scaled_font, + unsigned long glyph_index) +{ + return TRUE; +} + static void _command_init_copy (cairo_recording_surface_t *surface, cairo_command_header_t *dst, @@ -1703,6 +1711,7 @@ static const cairo_surface_backend_t cairo_recording_surface_backend = { _cairo_recording_surface_show_text_glyphs, NULL, /* get_supported_mime_types */ _cairo_recording_surface_tag, + _cairo_recording_surface_supports_color_glyph, }; static unsigned int |