mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2025-12-25 16:30:09 +01:00
PDF: Include Type 1 fixed-content portion in the embedded font
Some fonts may contain additional PostScript code after the cleartomark.
This commit is contained in:
parent
ac59c75808
commit
d962d6bae2
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue