Bug 688872 - pdfwrite: Optimize the resolving of Encoding conflicts.
Summary: pdfwrite: Optimize the resolving of Encoding conflicts.
Status: CONFIRMED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PDF Writer (show other bugs)
Version: master
Hardware: PC Windows XP
: P4 enhancement
Assignee: Ken Sharp
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-07 05:21 UTC by leonardo
Modified: 2011-07-19 19:33 UTC (History)
2 users (show)

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description leonardo 2006-09-07 05:21:46 UTC
The test case of the Bug 688823 makes pdfwrite to synthesize an Encoding with 
characters outside StandardEncoding. Currently it finds a character in some 
encoding, and chooses the character code from it. It may cause Encoding 
conflict if later it meets another character from another 'standard' encoding 
with a character code already used. The conflict causes pdfwrite to create 
another font copy, which enlarges the output PDF.

Need to think how to choose character codes better. Maybe we should drop the 
wish to make the encoding to be closer to one of 'standard' encoding, and 
simply assign consecutive numbers for char codes ?
Comment 1 leonardo 2006-09-07 05:54:58 UTC
Also (1) use 'notdef' entries for adding characters to a 'standard' encoding; 
(2) try 'bigger' encodings first (PDFDocEncoding to StandardEncoding).
Comment 2 leonardo 2007-08-29 20:43:53 UTC
Passing to Ken since he handles pdfwrite from now.
Comment 3 Shailesh Mistry 2011-07-19 19:33:30 UTC
Enhancement still missing in Ghostscript 9.03