Last modified: 2011-02-22 18:27:22 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 T29502, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 27502 - Monospace text too small
Monospace text too small
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikiEditor (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Trevor Parscal
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-02-17 19:03 UTC by Erwin Dokter
Modified: 2011-02-22 18:27 UTC (History)
1 user (show)

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


Attachments

Description Erwin Dokter 2011-02-17 19:03:07 UTC
This is actually a widely known problem. Monospace text is too small in Firefox and Chrome. The problem is visible under the 'Help' button, 'What you type' column.

To trigger the proper textsize, a second, valid font is needed. So instead of { font-family: monospace; }, it should be { font-family: monospace, "Courier New"; }.

Note that this is not ment to prefer Courier New, but merely to provide a second, valid (and safe) parameter to trigger these browsers into displaying the correct fontsize. This means that any user's preferred monospace font will still be used.

There are two instances in jquery.wikiEditor.toolbar.css that would need to be modified: line 244 and line 270. In the latter case, line 271 (font-size) would no longer be needed and can be removed to ensure consistent behaviour between browsers.
Comment 1 Roan Kattouw 2011-02-19 15:02:39 UTC
Added Courier New in r82458. Didn't change the font-size; Trevor, can you look into that?
Comment 2 Trevor Parscal 2011-02-22 18:27:22 UTC
Yes, reviewed and OK'd - this was the right solution.

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


Navigation
Links