Opened 12 years ago

Last modified 11 years ago

#33822 closed defect

ghostscript @9.05_0 missing characters in loaded fonts — at Version 3

Reported by: rosgen@… Owned by: takanori@…
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: Cc:
Port: freetype ghostscript

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Since upgrading ghostscript to @9.05_0 certain characters in postscript and pdf files are not displayed. Reverting to @9.04_1 fixes the problem.

This is on a system running 10.6.8. Potentially relevant ports installed are:

freetype @2.4.9_1+universal
fontconfig @2.9.0_1+universal

The problem occurs on the attached pdf file (and on other files). The text in the left margin is missing several characters. I've attached two screenshots: the behaviour in 0.94_1.png is the correct behaviour displayed by ghostscript @9.04_1, while the behaviour shown in 0.95_0.png is what ghostscript @9.05_0 displays. Other pdf viewers agree with the output of @9.04_1.

The console output of @9.05_0 on this file is:

GPL Ghostscript 9.05 (2012-02-08)
Copyright (C) 2010 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 20.
Page 1
Loading NimbusRomNo9L-Regu font from /opt/local/share/ghostscript/9.05/Resource/Font/NimbusRomNo9L-Regu... 3438920 2049811 6310512 5008808 3 done.
>>showpage, press <return> to continue<<

Whereas in @9.04_1 the output is:

GPL Ghostscript 9.04 (2011-08-05)
Copyright (C) 2011 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 20.
Page 1
Loading NimbusRomNo9L-Regu font from /opt/local/share/ghostscript/9.04/Resource/Font/NimbusRomNo9L-Regu... 3559648 2160956 6127704 4819707 3 done.
>>showpage, press <return> to continue<<

The only differences are in the numbers displayed regarding the loaded font. It seems like the font is either corrupt or being loaded incorrectly.

Change History (6)

Changed 12 years ago by rosgen@…

Attachment: paper.pdf added

pdf file that is not correctly displayed

Changed 12 years ago by rosgen@…

Attachment: 9.05_0.png added

incorrect behaviour (@9.05_0)

Changed 12 years ago by rosgen@…

Attachment: 9.04_1.png added

correct behaviour (@9.04_1)

comment:1 Changed 12 years ago by takanori@…

Keywords: freetype added
Owner: changed from macports-tickets@… to takanori@…

I guess this is because the latest freetype is broken.

I could reproduce your bug using the latest ghostscript (@9.05) and freetype (@2.4.9_1) easily. But when I downgrated freetype to @2.4.8_0, the problem was gone.

Reverting to @9.04_1 fixes the problem.

ghostscript @9.04_1 uses its own freetype library. (i.e. it doesn't depend on MacPorts' freetype library.) So, the problem doesn't occur even if MacPorts' freetype library is broken..

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

See also #33830, a similar report about evince and gv.

comment:3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Note: See TracTickets for help on using tickets.