mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-04 22:18:29 +02:00
Type 1 subset: Don't add a new line when in binary mode
At the end of the private dictionary a new line is appended so that the trailing zeros will not exceed 80 columns. In hex mode (used for PS embedding) extra white space is harmless as it is ignored when parsing the ascii hex encoded data. But in binary mode (used for PDF embedding) the new line must not be added as it corrupts the binary data. https://bugs.launchpad.net/ubuntu/+source/cups/+bug/419143
This commit is contained in:
parent
9775f44436
commit
a4a59be600
1 changed files with 2 additions and 1 deletions
|
|
@ -1108,7 +1108,8 @@ cairo_type1_font_subset_write_private_dict (cairo_type1_font_subset_t *font,
|
|||
if (unlikely (status))
|
||||
return status;
|
||||
|
||||
_cairo_output_stream_write (font->output, "\n", 1);
|
||||
if (font->hex_encode)
|
||||
_cairo_output_stream_write (font->output, "\n", 1);
|
||||
|
||||
return CAIRO_STATUS_SUCCESS;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue