Closed Bug 221717 Opened 21 years ago Closed 21 years ago

[ps] Postscript output should not be scaled based on screen DPI

Categories

(Core :: Printing: Output, defect)

x86
Linux
defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 106083

People

(Reporter: kherron+mozilla, Assigned: kherron+mozilla)

References

Details

Pages are laid out in terms of "scaled pixels". The scale factor is a value from
the display context, mCPixelScale. The pixel scale is basically the size ratio
of a device pixel compared with a 72dpi pixel, e.g. a value of 0.5 implies that
the page should be laid out using 144dpi pixels.

The PS printing module mCPixelScale from the parent context's pixel scale. The
parent context is apparently a screen context, so its pixel scale will depend on
the physical characteristics of the screen in use (or on a pref set by the
user). As a result, PS printouts will use larger or smaller fonts, images, etc.
depending on the display in use.

More reasonable behavior would be to hardcode some value (say, 0.75,
corresponding to 96dpi) and allow the user to override with a pref which is
unique to printing.

How to reproduce:

1) Go to Edit->Preferences->Appearance->Fonts and set "display resolution" to 72dpi.
2) Print a page.
3) Set "display resolution" to 96 dpi.
4) Print the page again.
5) Note that fonts, images, etc. are larger in the first printout.
I agree that this is broken.  (Not only should we not take DPI from the screen
stuff, but we should probably have a separate bug on not taking the font size
prefs either, if we don't have such a bug already.)

This is probably related to bug 177805.  You might be interested in reading bug
177805 and bug 153080.
Depends on: pixels

*** This bug has been marked as a duplicate of 106083 ***
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.