summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2009-11-08 21:46:16 +1030
committerCarl Worth <cworth@cworth.org>2010-02-19 13:32:13 -0800
commitaf5f90df1d9f351e1189d96679979133e1a34379 (patch)
treeb0a1361682f940ab819d30c9d943016291855663 /src
parent7169e1f694dd068b3eae0dce4696c0e8199842ff (diff)
PDF: Include Type 1 fixed-content portion in the embedded font
Some fonts may contain additional PostScript code after the cleartomark. (cherry picked from commit d962d6bae2681ea1f3c9533a83c8902d76e81c6a)
Diffstat (limited to 'src')
-rw-r--r--src/cairo-pdf-surface.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cairo-pdf-surface.c b/src/cairo-pdf-surface.c
index 44f0ed83..7632aeaf 100644
--- a/src/cairo-pdf-surface.c
+++ b/src/cairo-pdf-surface.c
@@ -3174,16 +3174,16 @@ _cairo_pdf_surface_emit_type1_font (cairo_pdf_surface_t *surface,
if (subset_resource.id == 0)
return CAIRO_STATUS_SUCCESS;
- /* We ignore the zero-trailer and set Length3 to 0. */
- length = subset->header_length + subset->data_length;
+ length = subset->header_length + subset->data_length + subset->trailer_length;
status = _cairo_pdf_surface_open_stream (surface,
NULL,
TRUE,
" /Length1 %lu\n"
" /Length2 %lu\n"
- " /Length3 0\n",
+ " /Length3 %lu\n",
subset->header_length,
- subset->data_length);
+ subset->data_length,
+ subset->trailer_length);
if (status)
return status;