Open Bug 478746 Opened 15 years ago Updated 2 years ago

96 <= dpi < 192 is dpi=96 for firefox

Categories

(Core :: CSS Parsing and Computation, defect)

All
Linux
defect

Tracking

()

UNCONFIRMED

People

(Reporter: dan_500, Unassigned)

References

Details

(Whiteboard: DUPEME)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; de-DE; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.10 (intrepid) Firefox/3.0.6 Ubiquity/0.1.4
Build Identifier: 

Firefox does not use the same dpi as GTK in some cases.

Reproducible: Always

Steps to Reproduce:
1. Change dpi to 191 in GTK.
2. Start firefox
Actual Results:  
Firefox itself is using 96 dpi and GTK 191 dpi, so it looks awful.

Expected Results:  
Result has to be similar to 192 dpi result.

layout.css.dpi is set to -1 (default).
What version of Firefox are you using, and can you please give a screenshot or some example of the issue in Safe Mode?
Whiteboard: DUPEME
Please ignore comment 1.

What are you using to measure the DPI?
(And do you see the same issue in a build from mozilla.com rather than the Ubuntu build?)
Yes, i see the same issue in "firefox-3.0.6.tar.bz2". I also see the same issue in Shiretoko 3.1b2pre 20090122.
> What are you using to measure the DPI?
You don't need to use a tool, because the difference is very big.
Er, I'm using gnome-appearance-properties to set the dpi.
I mean the difference between 191 and 96 dpi.
What is different?  Why does it "look awful"?
For what it's worth, when the DPI goes from 191dpi to 192dpi, the expected result is that we change our CSS pixel scaling factor from 1 to 2, so that a CSS pixel becomes 2 device pixels instead of one.  This may be relevant because our default font size is 16 CSS pixels, and images by default are given a size based on their intrinsic dimensions, in CSS pixels.  I'm guessing that's what you're complaining about, but you haven't actually said anything about the symptoms you're seeing other than "looks awful".
Yes, that's it. Sorry for my bad description.
So why there's no scaling factor between 1 and 2? The zoom feature has no problems with these factors.
I've a Laptop with 137 dpi resolution.  The way to small fonts
have bothered me a long time.  Usually I used a minimum font size of 22
to work around this without understanding the details.
Today I installed the following Addon as a workaround:
https://addons.mozilla.org/en-US/firefox/addon/2592/ 
which works much better.
The six screenshots in the screenshots.tar attached to the https://bugzilla.redhat.com/show_bug.cgi?id=478312
illustrate the buggy discrete jumping scaling behaviour quite good.
The buggy behaviour can also be observed on Windows (tested this today
with a fresh download on Windows XP running in a virtual box).
This should really be fixed in future releases of Firefox.
Restrict Comments: true
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.