Last modified: 2014-04-11 18:23:36 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T26739, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 24739 - Ability to dynamically change base font-size of Mediawiki
Ability to dynamically change base font-size of Mediawiki
Status: NEW
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
1.16.x
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: design
: 58690 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-08-10 06:30 UTC by Nux
Modified: 2014-04-11 18:23 UTC (History)
9 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Nux 2010-08-10 06:30:09 UTC
We (@pl.wiki) have loads of reports that say "FONT SIZE IS TO SMALL!!!" (yes in capitals ;-)) and sometimes quite opposite that font size is too big. I'm aware that some reports might be made because of different renderings in different browsers (like in bug 23956), still it seems that problems like that should be resolved differently.

We try to educate people that they can zoom in/out pages in their browsers (or change DPI), but I think a more appropriate solution would be to add some "A+", "A-" buttons to make fonts bigger and smaller through JavaScript. Script could add some class to body (or #content) that would change the size and set a cookie to preserve the state (e.g. for 10 days). In e-newspapers there are usually 3 to 5 sizes of fonts. Three state version is kinda easier to do from an interface perspective as there could be 3 letters "A" with gradual size.

One more thing - we could do it with JavaScript alone, but I think the class should be added on server side so that fonts wouldn't flicker upon loading a page.
Comment 1 Bugmeister Bot 2011-08-19 19:12:53 UTC
Unassigning default assignments. http://article.gmane.org/gmane.science.linguistics.wikipedia.technical/54734
Comment 2 Quim Gil 2013-04-02 05:30:08 UTC
Wikimedia is about spreading free knowledge, and our users will benefit from knowing that they can change the size of the fonts from their browser, isn't it?

Facebook seems also to be doing well and they also don't offer any hint in their UI - see e.g. http://www.geeksugar.com/How-Change-Facebook-Font-Size-11876255

I never liked those font size gadgets in UI and I personally think that we shouldn't be doing them. Especially not in our official skins / engine. If someone wants this there is probably a way to have it via gadget.
Comment 3 Erwin Dokter 2013-04-02 19:23:57 UTC
There is code available: [[User:Edokter/FontSizer.js]] / [[User:Edokter/FontSizer.css]]. Should be trivial to make into a gadget.
Comment 4 Nux 2013-04-03 15:51:13 UTC
It's not possible to do this with a gadget (at least not possible to do this nicely), because it's not possible to run JavaScript before the page is rendered (IIRC not possible after 1.17).

Besides I think this should be available for all users of all wikis. Yes, there are people that know how to use their browser as a tool, but most people don't know about it's existence and so don't know about it's functions. Thats probably because most browsers hide their UI more and more (IE 10 on Win8 even hides it completely).
Comment 5 MZMcBride 2013-09-06 20:49:11 UTC
Jared: thoughts?
Comment 6 Jared Zimmerman (WMF) 2013-09-06 21:27:30 UTC
I think this is a great start to an idea. However I hate to spend design and development cycles redesigning browser functionality.

1. My recommendation would be to have the default site skin react properly during browser font zoom

2. Create a Beta Feature https://www.mediawiki.org/wiki/Beta_Features that allows someone to switch to an accessiblity mode where we have significanlty larger fonts by default

3. Have the site be responsive to window size when it comes to line length, leading, padding & whitespace, (but not font size )which will all aid in readability.
Comment 7 Andre Klapper 2013-12-19 16:07:13 UTC
*** Bug 58690 has been marked as a duplicate of this bug. ***
Comment 8 WhatamIdoing 2014-04-10 15:03:11 UTC
This is still being requested, after the April 2014 Typography Refresh work.
Comment 9 Erwin Dokter 2014-04-10 18:46:50 UTC
(In reply to Nux from comment #4)
> It's not possible to do this with a gadget (at least not possible to do this
> nicely), because it's not possible to run JavaScript before the page is
> rendered (IIRC not possible after 1.17).

It is now, with the top directive.

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


Navigation
Links