Page MenuHomePhabricator

Monospace font setting overridden
Closed, ResolvedPublic

Description

As reported on twn:

"Since yesterday, the edit window have used proportional font (“font-family: Helvetica,Arial,sans-serif”), set directly on the element using a JS somewhere, so that it is difficult to find the specific cause. I suspect WebFonts are somehow to blame here, but I’m not sure about that. Anyway – is this a feature, or a bug, and can I have the monospaced font back, please? (Changing the font in preferences does not work, since that just emits a CSS rule for textarea, which is overriden by a specific style declaration directly on the element, set by the JS.)"

Santhosh confirmed this issue.


Version: master
Severity: normal
URL: https://translatewiki.net/w/i.php?title=Thread:Support/Can_I_have_my_monospaced_font_back,_please%3F

Details

Reference
bz39560

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 1:03 AM
bzimport set Reference to bz39560.

https://gerrit.wikimedia.org/r/#/c/21411/ will not fix this completely, Still there are two font preferences - one from ULS and one from existing mediawiki preferences. Both will conflict each other for edit boxes. So we need a better way to handle these two options. But I think priority can be reduced with this fix.

The bug is back again. Only this time, the style attribute says only "font-family: sans-serif;"

Some regression caused this again.

See also bug 39992. This is currently occurring on Wikidata.org.

By default users now have "font-family: sans-serif;" inline on the <textarea> instead of the browser default (which in most browsers is a monospace font for <textarea>).

The MediaWiki preference related to this is not relevant, as it doesn't do anything by default.

…and here we go again. The textarea on MediaWiki.org has “font-family: sans-serif;” style inline when using Czech [cs], see e.g. http://www.mediawiki.org/w/index.php?title=Project:Sandbox&action=edit&uselang=cs

My guess is I9dd87f44 (or https://github.com/santhoshtr/jquery.webfonts/commit/1f67cf2bf9ac435a6772eb66f080b118c0e10661).

I switched my preferences to make the textarea always use monospaced font, which seems to stop ULS from messing with the textarea for now.

Mormegil, if you don't mind I suggest to keep this old report closed and continue on bug 53734 which is its reincarnation.