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




10 years ago
4 years ago


(Reporter: dan_500, Unassigned)


Firefox Tracking Flags

(Not tracked)


(Whiteboard: DUPEME)



10 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; de-DE; rv: 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).

Comment 1

10 years ago
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?)

Comment 4

10 years ago
Yes, i see the same issue in "firefox-3.0.6.tar.bz2". I also see the same issue in Shiretoko 3.1b2pre 20090122.

Comment 5

10 years ago
> What are you using to measure the DPI?
You don't need to use a tool, because the difference is very big.
The difference in what?

Comment 7

10 years ago
Er, I'm using gnome-appearance-properties to set the dpi.

Comment 8

10 years ago
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".

Comment 11

10 years ago
Yes, that's it. Sorry for my bad description.

Comment 12

10 years ago
So why there's no scaling factor between 1 and 2? The zoom feature has no problems with these factors.


8 years ago

Comment 15

8 years ago
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:
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
You need to log in before you can comment on or make changes to this bug.