mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 06:28:01 +02:00
PDF: Ensure ToUnicode CMap name is unique
and remove an unused printf argument.
This commit is contained in:
parent
7d03fe94d7
commit
dc0043383b
1 changed files with 7 additions and 4 deletions
|
|
@ -1665,16 +1665,19 @@ _cairo_pdf_surface_emit_toUnicode_stream (cairo_pdf_surface_t *surface,
|
|||
"12 dict begin\r\n"
|
||||
"begincmap\r\n"
|
||||
"/CIDSystemInfo\r\n"
|
||||
"<< /Registry (Adobe)\r\n"
|
||||
" /Ordering (UCS)\r\n"
|
||||
"<< /Registry (Cairo)\r\n"
|
||||
" /Ordering (ToUnicode-%d-%d)\r\n"
|
||||
" /Supplement 0\r\n"
|
||||
">> def\r\n"
|
||||
"/CMapName /Adobe-Identity-UCS def\r\n"
|
||||
"/CMapName /Cairo-ToUnicode-%d-%d def\r\n"
|
||||
"/CMapType 2 def\r\n"
|
||||
"1 begincodespacerange\r\n"
|
||||
"<00> <ff>\r\n"
|
||||
"endcodespacerange\r\n",
|
||||
stream.id);
|
||||
font_subset->font_id,
|
||||
font_subset->subset_id,
|
||||
font_subset->font_id,
|
||||
font_subset->subset_id);
|
||||
|
||||
/* The CMap specification has a limit of 100 characters per beginbfchar operator */
|
||||
_cairo_output_stream_printf (surface->output,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue