diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2009-11-08 21:46:16 +1030 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2009-11-08 21:46:16 +1030 |
commit | d962d6bae2681ea1f3c9533a83c8902d76e81c6a (patch) | |
tree | 8ce93b01e219aa099d6fcd9cb4a5f830f8c08ed8 | |
parent | ac59c7580894fc5fd424f7f6f8c1532d15048566 (diff) |
PDF: Include Type 1 fixed-content portion in the embedded font
Some fonts may contain additional PostScript code after the
cleartomark.
-rw-r--r-- | src/cairo-pdf-surface.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cairo-pdf-surface.c b/src/cairo-pdf-surface.c index cdf38748..62178dc2 100644 --- a/src/cairo-pdf-surface.c +++ b/src/cairo-pdf-surface.c @@ -3997,16 +3997,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 (unlikely (status)) return status; |