Bug 517474 - Problem with hyphen in PDF using Minion
Summary: Problem with hyphen in PDF using Minion
Status: NOTIFIED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PDF Interpreter (show other bugs)
Version: master
Hardware: All All
: P2 normal
Assignee: Igor Melichev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-14 04:39 UTC by Jack Moffitt
Modified: 2007-12-13 12:55 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jack Moffitt 2002-02-14 04:39:36 UTC
Originally reported by: chlick@users.sourceforge.net
Some PDF files I created using PDFTeX and Adobe Minion
are not displayed correctly : the hyphen char '-' (and
only this one) is treated as if it had null width, so
the following letter is superposed.

I use gs 7.04, I compiled with egcs-2.91.66 on a tuned
RH 6.2 system, i686.

No special compilation option, nor env variables.

Here is a sample testfile :

<http://damien.wyart.free.fr/laballade.pdf>

This problem doesn't occur when using Acrobat Reader
(any version) nor Xpdf (v1.0), so I guess the PDF file
is OK.
Comment 1 Jack Moffitt 2002-02-14 06:00:39 UTC
Comment originally by chlick@users.sourceforge.net
Logged In: YES 
user_id=402822

I forgot to tell that the same file in PS (via latex+dvips)
is displayed correctly. So this really looks like a PDF
interpreter problem.
Comment 2 Jack Moffitt 2002-02-20 08:55:59 UTC
Comment originally by jackiem@users.sourceforge.net
Logged In: YES 
user_id=206537

Where is the file can I see the problem?  A cursory glance
did not reveal anything obvious.  What page/paragraph?
Comment 3 Jack Moffitt 2002-02-20 08:57:03 UTC
Comment originally by jackiem@users.sourceforge.net
Logged In: YES 
user_id=206537

Also, if it's font specific, you might want to email the
font to me directly at jack@artifex.com unless Adobe Minion
is freely available from the web somewhere.
Comment 4 Raph Levien 2002-02-20 10:41:12 UTC
Comment originally by raph@users.sourceforge.net
Logged In: YES 
user_id=379

Some observations:

1. The font is embedded in the file, so it's straightforward
to reproduce the problem. No need to send the font
separately.

2. The first occurrence is on line 3 of page 2. In "Est-ce",
the hyphen overprints the "c", so it looks like Est\epsilon
e.

3. This problem does not occur in the GS_6_5 branch. It is
reproducible in 7.04 and HEAD. I haven't checked any of the
other 7.0x releases, but it might be worth doing so to help
isolate the change that introduced the bug.

4. Running the file through pdfwrite "freezes" the hyphen
location. After running the file through pdfwrite on 6.54,
it displays with correct spacing on all tested versions of
gs. The same test using 7.04 pdfwrite displays incorrect
spacing on all tested versions of gs. I've attached a couple
of these pdf files.

Hopefully, this will help narrow down the problem. We'll add
the file to our regression test suite so we don't
re-introduce the bug later. Thanks for the report!
Comment 5 Jack Moffitt 2002-02-20 11:32:31 UTC
Comment originally by chlick@users.sourceforge.net
Logged In: YES 
user_id=402822

Dear raph,

Thanks for this very precise feedback and confirmation of
the problem.

A friend of mine told the problem does *not* occur with gs 7.00.

I hope the bug will be located soon.

Thanks again for your reply !
Comment 6 Igor Melichev 2002-02-23 04:56:11 UTC
Comment originally by igorm@users.sourceforge.net
Logged In: YES 
user_id=79484

The reason is that 'hypen' appears twice in Differences.
A hack in getfontmetrics has been improved for this case.
See the patch
http://www.ghostscript.com/pipermail/gs-code-review/2002-
February/002008.html
Comment 7 Igor Melichev 2002-02-24 21:43:06 UTC
Comment originally by igorm@users.sourceforge.net
Logged In: YES 
user_id=79484

The patch has been committed.