Bug 691920

Summary: landscape with pbmraw output scretches font!
Product: Ghostscript Reporter: Rick Richardson <rick.richardson>
Component: GeneralAssignee: Chris Liddell (chrisl) <chris.liddell>
Status: RESOLVED FIXED    
Severity: normal CC: chris.liddell, twaugh
Priority: P4    
Version: master   
Hardware: PC   
OS: Linux   
Customer: Word Size: ---
Attachments: test.ps
pbmraw output from gs 8.72
pbmraw output from gs 9.01

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.