Package: gs-esp
Version: 7.07.1-9
Severity: important
Tags: patch

Viewing the attached PDF file with gs-esp (either directly or via gv), the hyphen is overprinted by the following 'a'. The file displays correctly with xpdf or Acrobat Reader. This is an old bug which was fix but for some reasons never made it to GPL GS and hence ESP GS. See <URL:http://bugs.ghostscript.com/show_bug.cgi?id=517474> and
<URL:http://www.ghostscript.com/pipermail/gs-code-review/2002-February/002030.html>.
The attached patch solves this for me.

cheerio
ralf

Attachment: garamond.pdf
Description: Adobe PDF document

--- /usr/share/gs-esp/7.07/lib/pdf_font.ps.orig 2005-02-16 20:24:34.000000000 
+0100
+++ /usr/share/gs-esp/7.07/lib/pdf_font.ps      2005-02-16 20:26:10.000000000 
+0100
@@ -141,6 +141,7 @@
                % dictionary works by character name, not by character code.
                % We prefer to take (1) non-zero width, and (2) width for 
                % the character code which appears in Differences.
+          dup 0 eq { exit } if
           Metrics 2 index .knownget not { 0 } if 0 ne {
             5 index /Encoding knownoget not { exit } if
             dup type /dicttype ne { pop exit } if

Reply via email to