Closed Bug 527750 Opened 16 years ago Closed 16 years ago

Fonts are too large when styled using physical sizes

Categories

(Firefox for Android Graveyard :: General, defect)

ARM
Maemo
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
fennec1.0

People

(Reporter: mfinkle, Assigned: mfinkle)

Details

For some reason the fonts are just way to big. Works fine in microb on N900.
tracking-fennec: --- → ?
Looks horrible on desktop too
Removing the body { font-size: 10pt; } fixes the font appearance
This is the same on http://blogs.mercurynews.com/kawakami/ and blog.mozilla.com/addons/ I believe.
Sorry for the double post, but this should also block fennec I think. Please marking this as blocking-fennec? after bug 528867 is fixed.
amazon.com search area too.
tracking-fennec: ? → 1.0+
A general summary of the problem: Devices have small screens, but high DPI. So a webpage might fit nicely into the 800px width of the N900/N810 screen. Default fonts are sized using pixels, so the text appears to be scaled appropiately, where "appropriately" means the text is small (maybe even hard to read). The browser allows the webpage to be "zoomed" without reflow so the text can be read. However, if some text is styled with physical sizes (pt, mm, in), then the platform will try to size the text to the physical dimension. The problem is this: 800px on a 20 inch desktop monitor (96 DPI) means the 16pt (0.22 inches) font might look fine. On the 3.5 inch mobile device (265 DPI), the 16pt (0.22 inches) font looks enormous. Think of it this way: on a 20 inch monitor, 16pt (0.22 inches) is about 1% of the screen size. On the 3.5 inch mobile device, 16pt (0.22 inches) is about 6% of the screen size. Everything else being equal (or pixel based in this case), the font difference is out of balance.
Summary: Fonts are too large on thenokiablog.com → Fonts are too large when styled using physical sizes
(In reply to comment #6) > However, if some text is styled with physical sizes (pt, mm, in), then the > platform will try to size the text to the physical dimension. The problem is > this: 800px on a 20 inch desktop monitor (96 DPI) means the 16pt (0.22 inches) > font might look fine. On the 3.5 inch mobile device (265 DPI), the 16pt (0.22 > inches) font looks enormous. Even though the fonts are actually the same size on both screens: 0.22 inches is the same everywhere. It's the out-of-balance part that makes the 0.22 inch font now look way too big.
Assignee: nobody → mark.finkle
fixed by bug 531102 and bug 530931
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Target Milestone: --- → Post-B5
verified FIXED on builds: Mozilla/5.0 (X11; U; Linux armv7l; Nokia N900; en-US; rv:1.9.2b5pre) Gecko/20091130 Firefox/3.6b5pre Fennec/1.0b6pre and Mozilla/5.0 (X11; U; Linux armv6l; Nokia N8xx; en-US; rv:1.9.3a1pre) Gecko/20091130 Firefox/3.7a1pre Fennec/1.0b5
Status: RESOLVED → VERIFIED
Flags: in-litmus?
We need to create a local test page that includes variations of text sizing mentioned in commet #6 before we can add this testcase to litmus. I'll get to it when I get the chance to do so.
Component: Linux/Maemo → General
OS: Linux → Linux (embedded)
QA Contact: maemo-linux → general
Hardware: x86 → ARM
I'm reassigning this to myself for adding litmus testcases for this (aakashd discussed this on irc with blassey and ted on #mobile).
Assignee: mark.finkle → martijn.martijn
Assignee: martijn.martijn → mark.finkle
Flags: in-litmus? → in-litmus?(martijn.martijn)
tracking-fennec: 1.0+ → ---
Flags: in-litmus?(martijn.martijn)
You need to log in before you can comment on or make changes to this bug.