Last Comment Bug 412669 - Make the default HTML font size be dependent on the default UI font size
: Make the default HTML font size be dependent on the default UI font size
Status: NEW
:
Product: Firefox
Classification: Client Software
Component: Preferences (show other bugs)
: Trunk
: All All
: -- enhancement (vote)
: Future
Assigned To: Nobody; OK to take it and work on it
:
: Jared Wein [:jaws] (please needinfo? me)
Mentors:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-01-16 12:44 PST by Julien "_FrnchFrgg_" RIVAUD
Modified: 2012-08-21 23:37 PDT (History)
7 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments

Description Julien "_FrnchFrgg_" RIVAUD 2008-01-16 12:44:09 PST
It would be cool to make the default HTML font size be dependent on
the default UI font size, since people who set their UI font to tiny probably
want tiny fonts on the web, and people who enlarge their UI font probably do so
because they need bigger fonts, and they'll need bigger fonts on the web too.

I see several possibilities:

a) Make font.size.*.* be a percent ratio wrt the default UI font size (or where applicable on the corresponding UI font size; on gtk I think all serif, sans-serif, etc, can be queried). The problem is that it suppresses the possibility to specify an absolute size in pixels.

b) Make font-size.*.* accept a special value "0" which would mean calculate from ui font. The pb is that the ratio is then hardcoded (probably not to 100%, since on IE the default font is bigger than the ui font and most websites specify fonts accordingly)

c) Make font-size.*.* treat negative values as the opposite of the ratio, or create another pref.

This bug is filed in Firefox, since if the feature is not wanted by UI people it doesn't make much sense to implement it in Gecko.
Comment 1 Nicolas Mailhot 2008-03-26 17:00:53 PDT
Bug #414427 is somewhat similar but more specific

Absolute pixel size is a dead end IMHO and if this is needed it should be done at the desktop level and all the firefox-level font prefs overrides need to die die die.
Comment 2 Nicolas Mailhot 2008-12-06 09:46:13 PST
(In reply to comment #1)

(ie use desktop font sizes exposed by XSettings, do not try to invent something else that will be inconsistent with the rest of the system and just confuse and annoy users)

Note You need to log in before you can comment on or make changes to this bug.