Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 135354 - ghostscript-esp 8.15.1_p20060430 font rendering is broken
Summary: ghostscript-esp 8.15.1_p20060430 font rendering is broken
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-02 23:53 UTC by xalan
Modified: 2006-06-07 02:21 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
postscript for testing (test.ps,35.91 KB, application/postscript)
2006-06-02 23:56 UTC, xalan
Details
test.ps as rendered by 8.x ghostscript. Note poor font rendering (snapshot1.png,111.64 KB, image/png)
2006-06-02 23:57 UTC, xalan
Details
test.ps as rendered by 7.x ghostscript. Contrast this with previous one (snapshot7.png,126.19 KB, image/png)
2006-06-02 23:58 UTC, xalan
Details
test.ps as rendered by 8.x ghostscript at one level zoom (snapshot2.png,160.50 KB, image/png)
2006-06-03 00:00 UTC, xalan
Details
test.ps as rendered by 7.x ghostscript at one level zoom. Notice the difference (snapshot8.png,148.05 KB, image/png)
2006-06-03 00:01 UTC, xalan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description xalan 2006-06-02 23:53:11 UTC
Of late I had been having problems with gv, which was rendering fonts very poorly. Since gv uses ghostscript as backend, I finally traced the bug to ghostscript. It seems ghostscript 8.x renders font very poorly. This is particular with documents generated with times font  using latex.

I searched this site for this bug but could not find. Google helped with this link

http://volker.dnsalias.net/soft/rpm/suse10.0/other/ghostscript-library-7.07.1rc1-pref.spec

So i downgraded from 8.15.1_p20060430 to 7.07.1-r8. Now the fonts are rendered much better. I have comparitive screenshots and the test postscript, but dont know how to upload them. 

emerge --info 
Portage 2.0.54-r2 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.4.20041102-r1, 2.6.16-gentoo-r7 i686)
=================================================================
System uname: 2.6.16-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz
Gentoo Base System version 1.6.14
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5, 2.4.2
dev-python/pycrypto: [Not Present]
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks fixpackages sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.mirrors.easynews.com/linux/gentoo/ http://open-systems.ufl.edu/mirrors/gentoo http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://gentoo.mirrors.tds.net/gentoo http://gentoo.mirrors.pair.com http://gentoo.ccccom.com/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="x86 X aalib acl alsa apache2 apm arts audiofile avi bash-completion berkdb bitmap-fonts bonobo bzip2 cdr cli crypt cscope cups curl directfb dri dts eds emboss encode esd ethereal exif expat fam ffmpeg flac foomaticdb fortran gd gdbm gif glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml guile idn imagemagick imlib ipv6 isdnlog java jpeg junit kde lcms ldap libg++ libwww mad matroska mikmod mng motif mozilla mp3 mpeg mysql nas ncurses nls nptl odbc ogg opengl oss pam pcre pdflib perl plotutils png postgres pppd python qt quicktime readline reflection sdl session slang spell spl ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts udev usb vorbis wmf xine xml xml2 xmms xorg xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS, PORTDIR_OVERLAY
Comment 1 xalan 2006-06-02 23:56:30 UTC
Created attachment 88236 [details]
postscript for testing
Comment 2 xalan 2006-06-02 23:57:32 UTC
Created attachment 88237 [details]
test.ps as rendered by 8.x ghostscript. Note poor font rendering
Comment 3 xalan 2006-06-02 23:58:39 UTC
Created attachment 88238 [details]
test.ps as rendered by 7.x ghostscript. Contrast this with previous one
Comment 4 xalan 2006-06-03 00:00:24 UTC
Created attachment 88239 [details]
test.ps as rendered by 8.x ghostscript at one level zoom
Comment 5 xalan 2006-06-03 00:01:52 UTC
Created attachment 88240 [details]
test.ps as rendered by 7.x ghostscript at one level zoom. Notice the difference
Comment 6 xalan 2006-06-03 00:04:38 UTC
Comment on attachment 88236 [details]
postscript for testing

Ok i finally found how to create attachments. So have uploaded the different renderings.

It seems this bug is lying around for an year. Are there any work arounds for this in 8.x?
Comment 7 Karl Tomlinson 2006-06-07 00:56:26 UTC
The behaviour of ghostscript 8.x should be more similar to that of 7.x with
the (gs) option -dAlignToPixels=0, which is said to "improve rendering of poorly hinted fonts" in Use.htm.
Comment 8 Stefan Schweizer (RETIRED) gentoo-dev 2006-06-07 00:57:47 UTC
ah cool, can I enable that per default somewhere in gv?
Comment 9 Karl Tomlinson 2006-06-07 01:14:55 UTC
Under State -> Ghostscript Options, probably in the Antialias Device section.
Comment 10 Stefan Schweizer (RETIRED) gentoo-dev 2006-06-07 02:21:56 UTC
I added a sed call to gv-3.6.1-r4.ebuild to make that option a default option. Can you please check if it works for you?

rsync mirrors should be up-to-date in an hour.

Thanks for reporting and for the solution!