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-cache.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-cache.c')
-rw-r--r-- | src/cairo-cache.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cairo-cache.c b/src/cairo-cache.c index 96809b585..be1285a20 100644 --- a/src/cairo-cache.c +++ b/src/cairo-cache.c @@ -336,3 +336,10 @@ _cairo_hash_bytes (uintptr_t hash, hash = ((hash << 5) + hash) + *bytes++; return hash; } + +uintptr_t +_cairo_hash_uintptr (uintptr_t hash, + uintptr_t u) +{ + return _cairo_hash_bytes (hash, &u, sizeof(u)); +} |