Bug 691920 - landscape with pbmraw output scretches font!
Summary: landscape with pbmraw output scretches font!
Status: RESOLVED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: General (show other bugs)
Version: master
Hardware: PC Linux
: P4 normal
Assignee: Chris Liddell (chrisl)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-31 18:11 UTC by Rick Richardson
Modified: 2011-02-01 17:28 UTC (History)
2 users (show)

See Also:
Customer:
Word Size: ---


Attachments
test.ps (391.05 KB, application/postscript)
2011-01-31 18:13 UTC, Rick Richardson
Details
pbmraw output from gs 8.72 (120.53 KB, application/octet-stream)
2011-01-31 18:15 UTC, Rick Richardson
Details
pbmraw output from gs 9.01 (112.04 KB, application/octet-stream)
2011-01-31 18:16 UTC, Rick Richardson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rick Richardson 2011-01-31 18:11:47 UTC
$ gs872 -q -dBATCH -dSAFER -dQUIET -dNOPAUSE -sPAPERSIZE=letter -r1200x600 -sDEVICE=pbmraw -sOutputFile=test872.pbmraw test.ps

It's great.  No problem.

$ gs901 -q -dBATCH -dSAFER -dQUIET -dNOPAUSE -sPAPERSIZE=letter -r1200x600 -sDEVICE=pbmraw -sOutputFile=test901.pbmraw test.ps

Scretches the font!!!!

Image view Eye Of Gnome:
$ eog test872.pbmraw test901.pbmraw
Comment 1 Rick Richardson 2011-01-31 18:13:00 UTC
Created attachment 7172 [details]
test.ps
Comment 2 Rick Richardson 2011-01-31 18:15:36 UTC
Created attachment 7173 [details]
pbmraw output from gs 8.72
Comment 3 Rick Richardson 2011-01-31 18:16:17 UTC
Created attachment 7174 [details]
pbmraw output from gs 9.01
Comment 4 Ken Sharp 2011-02-01 08:15:50 UTC
The same result can be reproduced with any non-square resolution, eg 192x96 shows the issue at screen resolution.
Comment 5 Chris Liddell (chrisl) 2011-02-01 17:12:15 UTC
fixed in r12089.
Comment 6 Till Kamppeter 2011-02-01 17:16:38 UTC
Is this problem not simply caused by the fact that eog does not know about the non-squared resolution and so it displays the output picture with a squared resolution and therefore stretches the font in x direction?

On a printer with 1200x600 dpi this bitmap should come out correctly.
Comment 7 Chris Liddell (chrisl) 2011-02-01 17:19:27 UTC
(In reply to comment #6)
> Is this problem not simply caused by the fact that eog does not know about the
> non-squared resolution and so it displays the output picture with a squared
> resolution and therefore stretches the font in x direction?
> 
> On a printer with 1200x600 dpi this bitmap should come out correctly.

No, it is (was) a genuine problem with how we were passing the resolution to Freetype for rotated glyphs.
Comment 8 Rick Richardson 2011-02-01 17:26:27 UTC
(In reply to comment #5)
> fixed in r12089.

Confirmed.
Comment 9 Till Kamppeter 2011-02-01 17:28:47 UTC
Sorry, ignore comment #6. My GS is built without Freetype (Ubuntu package). My output is therefore the correct one.