summaryrefslogtreecommitdiff
path: root/src/cairo-pdf-operators-private.h
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2008-06-29 19:38:13 +0930
committerAdrian Johnson <ajohnson@redneon.com>2008-06-29 19:55:02 +0930
commit770b7c9a74e3497692020255686c5c5b4e38001e (patch)
tree60637754049c5d322f6560a17b91b5331d3db3ae /src/cairo-pdf-operators-private.h
parent55dda8c64fc38cda75878f1a34eb1f86b1a445cb (diff)
downloadcairo-770b7c9a74e3497692020255686c5c5b4e38001e.tar.gz
Add show_text_glyphs to PDF operators
Diffstat (limited to 'src/cairo-pdf-operators-private.h')
-rw-r--r--src/cairo-pdf-operators-private.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/cairo-pdf-operators-private.h b/src/cairo-pdf-operators-private.h
index e29834b09..b48233513 100644
--- a/src/cairo-pdf-operators-private.h
+++ b/src/cairo-pdf-operators-private.h
@@ -71,10 +71,12 @@ typedef struct _cairo_pdf_operators {
cairo_bool_t in_text_object; /* inside BT/ET pair */
/* PDF text state */
+ cairo_bool_t is_new_text_object; /* text object started but matrix and font not yet selected */
unsigned int font_id;
unsigned int subset_id;
cairo_matrix_t text_matrix; /* PDF text matrix (Tlm in the PDF reference) */
cairo_matrix_t cairo_to_pdftext; /* translate cairo coords to PDF text space */
+ cairo_matrix_t font_matrix_inverse;
double cur_x; /* Current position in PDF text space (Tm in the PDF reference) */
double cur_y;
int hex_width;
@@ -134,9 +136,15 @@ _cairo_pdf_operators_fill_stroke (cairo_pdf_operators_t *pdf_operators,
cairo_matrix_t *ctm_inverse);
cairo_private cairo_int_status_t
-_cairo_pdf_operators_show_glyphs (cairo_pdf_operators_t *pdf_operators,
- cairo_glyph_t *glyphs,
- int num_glyphs,
- cairo_scaled_font_t *scaled_font);
+_cairo_pdf_operators_show_text_glyphs (cairo_pdf_operators_t *pdf_operators,
+ const char *utf8,
+ int utf8_len,
+ cairo_glyph_t *glyphs,
+ int num_glyphs,
+ const cairo_text_cluster_t *clusters,
+ int num_clusters,
+ cairo_bool_t backward,
+ cairo_scaled_font_t *scaled_font);
+
#endif /* CAIRO_PDF_OPERATORS_H */