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/cairoint.h | |
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/cairoint.h')
-rw-r--r-- | src/cairoint.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cairoint.h b/src/cairoint.h index 1e8c02fb3..5ce747ee4 100644 --- a/src/cairoint.h +++ b/src/cairoint.h @@ -406,6 +406,10 @@ _cairo_hash_bytes (uintptr_t hash, const void *bytes, unsigned int length); +cairo_private uintptr_t +_cairo_hash_uintptr (uintptr_t hash, + uintptr_t u); + /* We use bits 24-27 to store phases for subpixel positions */ #define _cairo_scaled_glyph_index(g) ((unsigned long)((g)->hash_entry.hash & 0xffffff)) #define _cairo_scaled_glyph_xphase(g) (int)(((g)->hash_entry.hash >> 24) & 3) @@ -1483,6 +1487,11 @@ _cairo_surface_tag (cairo_surface_t *surface, const char *tag_name, const char *attributes); +cairo_private cairo_bool_t +_cairo_surface_supports_color_glyph (cairo_surface_t *surface, + cairo_scaled_font_t *scaled_font, + unsigned long glyph_index); + cairo_private cairo_status_t _cairo_surface_acquire_source_image (cairo_surface_t *surface, cairo_image_surface_t **image_out, |