diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2008-06-03 20:56:11 +0930 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2008-06-03 23:24:09 +0930 |
commit | 6139fdc1073c0fe1bc5a3809f15c2ee8b5028469 (patch) | |
tree | 77cdd1b716d15a8d0c351fc44a93c0e34862ed89 /src/cairo-pdf-operators-private.h | |
parent | 6258f1a4e29e0457465e83bd5be1900a10c75473 (diff) |
PDF: Don't emit a new text object for every call to show_glyphs
A text object is a series of text operations enclosed in a 'BT'/'ET'
pair.
After a call to _cairo_pdf_operators_show_glyphs() the closing 'ET'
will not be emitted. This allows subsequent calls to show_glyphs() to
emit text into the same text object. A call to any other operator or
_cairo_pdf_operators_flush() will close the text object.
Diffstat (limited to 'src/cairo-pdf-operators-private.h')
-rw-r--r-- | src/cairo-pdf-operators-private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cairo-pdf-operators-private.h b/src/cairo-pdf-operators-private.h index 87075915..3486d13a 100644 --- a/src/cairo-pdf-operators-private.h +++ b/src/cairo-pdf-operators-private.h @@ -55,6 +55,7 @@ typedef struct _cairo_pdf_operators { cairo_scaled_font_subsets_t *font_subsets; cairo_pdf_operators_use_font_subset_t use_font_subset; void *use_font_subset_closure; + cairo_bool_t in_text; } cairo_pdf_operators_t; cairo_private void |