ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

use a monospace font in wiki-text (Bug #1111)


Added by Alf Gaida at 2012-08-07 10:06 am. Updated at 2012-08-20 08:21 pm.


Status:Closed Start date:2012-08-07
Priority:Normal Due date:
Assignee:Holger Just % Done:

0%

Category:Text formatting
Target version:3.4.0
Remote issue URL: Affected version:

Description

The wiki in browsers like rekonq, qupzilla etc is nearly unusable. Please consider the use of a monospace font in wiki-text.


textarea.jpg (237.3 kB) Alf Gaida, 2012-08-07 08:33 pm

textarea1.jpg (224.8 kB) Alf Gaida, 2012-08-07 08:33 pm


Associated revisions

Revision 76b92fb9
Added by Jean-Philippe Lang at 2008-04-26 12:20 pm

Warn user that subprojects are also deleted when deleting a project (#1111) and add a checkbox to confirm the deletion.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1359 e93f8b46-1217-0410-a6f0-8f06a7374b81

History

Updated by Alf Gaida at 2012-08-07 10:11 am

pull request: https://github.com/chiliproject/chiliproject/pull/226

-- please ignore, wrong request --

Updated by Felix Schäfer at 2012-08-07 10:27 am

Nice find on the Tahoma typo :-)

I don't have a linux desktop at hand to test the aforementioned browsers, could you provide a screenshot of the problem? I'm a bit puzzled by the solution too, I can understand that the font choice leads to shitty rendering on some platforms and I'm willing to try to improve it, I feel switching to a monospaced font altogether is a bit too radical though.

Updated by Alf Gaida at 2012-08-07 08:33 pm

the proposed change in application.css affects only the wiki-edit textarea. Samples attached.

  • textarea.jpg - wiki-edit with monospaced
  • textarea1.jpg - wiki-edit with a proportional font

Clarification: font-family monospaced should use the default browser or system font for monospaced fonts. in my case is this courier.

Updated by Alf Gaida at 2012-08-20 08:15 pm

https://github.com/agaida/chiliproject/commit/8991b5fd6c201ddbc25d87767c8223c81f9ceb65

next try, without the magic of github:

public/stylesheets/application.css

@@ -823,6 +823,8 @@ acronym {
 }

 textarea.wiki-edit {
+  font-family: monospace, courier;
+  font-size: 11px;
   width: 99%;
 }

@@ -2524,7 +2526,7 @@ h2 img {
  * This section includes the typography base for the body and heading elements.
  ------------------------------------------------------------------------------*/
 body {
-  font: normal normal normal 12px/1.5 arial,'lucida grandriale','lucida sans unicode',tahom,sans-serif;
+  font: normal normal normal 12px/1.5 arial,'lucida grandriale','lucida sans unicode',tahoma,sans-serif;
   background: #f3f3f3;
   color: #333;
 }

Updated by Holger Just at 2012-08-20 08:21 pm

Committed in 0e1a622

  • Assignee set to Holger Just
  • Status changed from Open to Closed

Also available in: Atom PDF