Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 360559

Summary: www-client/firefox-4.0-r1: Website font sizes became unreadibly tiny.
Product: Gentoo Linux Reporter: Navid Zamani <navid.zamani>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED OBSOLETE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Navid Zamani 2011-03-26 15:19:56 UTC
Hello. I updated to Firefox 4 today (normal emerge -uDN world after sync yesterday), and suddenly the fonts for the site rendering all became smaller. (The UI is still the same.)

I made very sure that I did not change anything else, so it should be reproducible.

Also, while all fonts have become smaller, those of Google and Wikipedia have become even smaller. I can barely read the results, and I have 120% eye-sight. And any changes in the settings (Bearbeiten → Einstellungen… → Inhalt → Schriftarten & Farben → Erweitert…) are ignored for those sites.
Ctrl-+ works, but as pressing Ctrl-0 proves, the default is still buggy.

What I expect, is that when setting the proper DPI in my system (I’ve done that, via xrandr), and I say e.g. 12pt font size, then the font should be exactly 12/72in (≈4.23333… mm).

Reproducible: Always

Steps to Reproduce:
0. Make sure you set your system’s display DPI correctly. E.g.:
0.1. Execute “xdpyinfo | grep dots”
0.2. Calculate the actual DPI by physically measuring the screen and dividing your resolution by that measurement. (Should result in the same for both height and width.)
0.3. Compare the results from 0.1 and 0.2. They must be the same. If not, use xrandr to fix it.
1. Click on the URL of this bug (a data url).
2. Measure the height of the X on your screen with a ruler.
Actual Results:  
I measured nearly exactly 27 mm.

Expected Results:  
It should be 42.333… mm (25.4∕72×120 or 120∕72×25.4) though.
Comment 1 Navid Zamani 2011-03-26 15:20:33 UTC
(Since the URL is apparently not clickable, just copy and paste it into the URL bar. :)
Comment 2 Navid Zamani 2011-03-26 16:07:20 UTC
Ok, apparenly the whole DPI setup is messed up:

data:text/html,<html><body><div style="margin:1cm; padding:0; border: 0; background: #000; color: #FFF; width: 10cm; height: 1cm">This should be exactly 10 cm × 1cm</div></body></html>

This is 9.1 cm wide.

Again: With properly set DPI in the system. (Checked with “xdpyinfo | grep dots”)
Comment 3 SpanKY gentoo-dev 2011-03-27 14:00:05 UTC
please post `emerge --info` whenever you report a bug
Comment 4 Navid Zamani 2011-03-27 15:22:46 UTC
While the DPI problem still exists, I found out that this was a separate problem, which already has been resolved.