Opened 13 years ago
Closed 11 years ago
#33822 closed defect (fixed)
ghostscript @9.05_0 missing characters in loaded fonts
Reported by: | rosgen@… | Owned by: | takanori@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.4 |
Keywords: | Cc: | ryandesign (Ryan Carsten Schmidt), pixilla (Bradley Giesbrecht) | |
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.
Attachments (3)
Change History (14)
Changed 13 years ago by rosgen@…
comment:1 Changed 13 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 13 years ago by ryandesign (Ryan Carsten Schmidt)
See also #33830, a similar report about evince and gv.
comment:3 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|
comment:4 follow-up: 5 Changed 13 years ago by takanori@…
Well, maybe we should apply a quick fix like the following to avoid this problem. Until the latest freetype library would be fixed.
$ LANG=C svn diff Index: Portfile =================================================================== --- Portfile (revision 90131) +++ Portfile (working copy) @@ -5,6 +5,7 @@ name ghostscript version 9.05 +revision 1 categories print license GPL-3+ maintainers takanori openmaintainer @@ -68,7 +69,7 @@ depends_build port:pkgconfig post-extract { - foreach d {freetype jbig2dec jpeg lcms2 libpng tiff zlib} { + foreach d {jbig2dec jpeg lcms2 libpng tiff zlib} { move "${worksrcpath}/${d}" "${worksrcpath}/${d}_local" }
This patch just makes ghostscript not to use MacPorts' freetype library.
Any thoughts?
comment:5 Changed 13 years ago by carmine.maffei@…
I confirm the problem with freetype @2.4.9_1. I had missing characters when converting (ImageMagick) eps files created in octave-devel to tiff or any other graphical format. Solved with the activation of freetype @2.4.8_0.
comment:6 Changed 13 years ago by takanori@…
Anyway I committed the patch in r91582 as a workaround.
comment:7 Changed 13 years ago by jmroot (Joshua Root)
Cc: | ryandesign@… added |
---|---|
Keywords: | freetype removed |
Port: | freetype added |
comment:8 follow-up: 10 Changed 12 years ago by jmroot (Joshua Root)
Is this still a problem with freetype 2.4.10?
comment:10 Changed 12 years ago by takanori@…
Replying to jmr@…:
Is this still a problem with freetype 2.4.10?
As far as I have tested, this problem does not occur on ghostscript @9.06_1/freetype @2.4.10_0.
comment:11 Changed 11 years ago by takanori@…
Resolution: | → fixed |
---|---|
Status: | new → closed |
pdf file that is not correctly displayed