Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 177673 - app-text/ghostscript-esp-8.15.4: wrong font size used when antialiasing text
Summary: app-text/ghostscript-esp-8.15.4: wrong font size used when antialiasing text
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-08 17:20 UTC by Martin von Gagern
Modified: 2007-05-13 08:27 UTC (History)
0 users

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


Attachments
test.ps (test.ps,35.75 KB, application/postscript)
2007-05-08 17:21 UTC, Martin von Gagern
Details
Comparison of screenshots (test.png,2.45 KB, image/png)
2007-05-08 17:29 UTC, Martin von Gagern
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2007-05-08 17:20:28 UTC
While working on a map with sci-geosciences/gmt I found that kghostview was using a wrong font size. I traced the problem to a call to gs, and found a simple sequence of commands to reproduce the issue:

gmtdefaults -Ds > .gmtdefaults4
pstext -Jx.5c/.5c -R0/30/0/40 -P <<< "10 20 5 0 0 BL Test text" > test.ps
gs -sDEVICE=x11 -dBATCH -dTextAlphaBits=4 -dMaxBitmap=10000000 test.ps
gs -sDEVICE=x11 -dBATCH -dMaxBitmap=10000000 test.ps
Comment 1 Martin von Gagern 2007-05-08 17:21:55 UTC
Created attachment 118588 [details]
test.ps

I attach test.ps so you don't have to install gmt to try this out.

I believe that the actual generation of PostScript code for gmt is done by dev-libs/pslib, so other programs using this lib might generate output that fails in a similar way.
Comment 2 Martin von Gagern 2007-05-08 17:29:26 UTC
Created attachment 118590 [details]
Comparison of screenshots

Here I took two screenshots of my gs output window and pasted the side by side.
As you can see when antialiasing is enabled, a much to large font gets selected, while the distances between the characters remain the same.
Comment 3 Stefan Schweizer (RETIRED) gentoo-dev 2007-05-13 08:23:00 UTC
this is an upstream bug most likely. but right now they are in the middle of merging with gs-gpl so I dont know exactly where to send you.

http://news.gmane.org/gmane.comp.printing.ghostscript.devel

that is definitely a good read. I suggest you to try it out with the merger branch and then send the bug report there.
Comment 4 Stefan Schweizer (RETIRED) gentoo-dev 2007-05-13 08:27:01 UTC
forgot to close as upstream. Feel free to come back when you found out something