summaryrefslogtreecommitdiff
path: root/src/cairo-type3-glyph-surface-private.h
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2008-06-08 17:03:05 +0930
committerAdrian Johnson <ajohnson@redneon.com>2008-06-08 17:12:02 +0930
commit42c212135d22654f9220a06779c7611fe6f0a714 (patch)
tree32cf5eb3d0a181e4e2fb961a1dbfba3ad3f96ad3 /src/cairo-type3-glyph-surface-private.h
parent5b05034cc9d943a5acb052763c1a595ac0e347fb (diff)
downloadcairo-42c212135d22654f9220a06779c7611fe6f0a714.tar.gz
Implement PS Type 3 font image support
There does not appear to be any way of emulating PDF inline images in PostScript so we call back to the PS or PDF surface to emit the image.
Diffstat (limited to 'src/cairo-type3-glyph-surface-private.h')
-rw-r--r--src/cairo-type3-glyph-surface-private.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/cairo-type3-glyph-surface-private.h b/src/cairo-type3-glyph-surface-private.h
index 894efbb36..698198864 100644
--- a/src/cairo-type3-glyph-surface-private.h
+++ b/src/cairo-type3-glyph-surface-private.h
@@ -40,6 +40,9 @@
#include "cairo-surface-private.h"
#include "cairo-pdf-operators-private.h"
+typedef cairo_status_t (*cairo_type3_glyph_surface_emit_image_t) (cairo_image_surface_t *image,
+ cairo_output_stream_t *stream);
+
typedef struct cairo_type3_glyph_surface {
cairo_surface_t base;
@@ -47,11 +50,13 @@ typedef struct cairo_type3_glyph_surface {
cairo_output_stream_t *stream;
cairo_pdf_operators_t pdf_operators;
cairo_matrix_t cairo_to_pdf;
+ cairo_type3_glyph_surface_emit_image_t emit_image;
} cairo_type3_glyph_surface_t;
cairo_private cairo_surface_t *
-_cairo_type3_glyph_surface_create (cairo_scaled_font_t *scaled_font,
- cairo_output_stream_t *stream);
+_cairo_type3_glyph_surface_create (cairo_scaled_font_t *scaled_font,
+ cairo_output_stream_t *stream,
+ cairo_type3_glyph_surface_emit_image_t emit_image);
cairo_private cairo_status_t
_cairo_type3_glyph_surface_emit_notdef_glyph (void *abstract_surface,