You are not logged in.

#1 2010-10-12 03:40:00

xelados
Member
Registered: 2007-06-02
Posts: 314
Website

[code] should use monospace font...

I noticed that all code blocks are using a proportional font. Unless there's a tag I'm missing, wouldn't it be best to use a monospace font to improve legibility? A lot of the content found in code blocks are from terminal output...

Offline

#2 2010-10-12 03:47:02

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,358

Re: [code] should use monospace font...

Sounds like a good idea. More suitable for the bug tracker though as a feature request.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#3 2010-10-12 03:50:06

frabjous
Member
Registered: 2010-07-13
Posts: 367

Re: [code] should use monospace font...

What theme are you using? (And what browser, and what browser settings?) I get monospaced fonts for code boxes. The CSS for the Radium theme I'm using has this for code:

font-family: consolas, monaco, "bitstream vera sans mono", "courier new", courier, monospace

I don't have consolas or monaco installed. I can't tell the difference (if there is any) between Bitstream Vera Sans Mono and DejaVu Sans Mono (my default monospace), but it looks like one of those.

(Took a screenie of this post.)

codebox2.png

(P.S. Just checked and I get the same result the default theme too.)

Last edited by frabjous (2010-10-12 03:57:30)

Offline

#4 2010-10-12 04:06:21

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [code] should use monospace font...

+1 to frabjous: check the theme and browser settings. Font sizes and general layout vary greatly between the different forum themes.

Offline

#5 2010-10-12 04:21:39

xelados
Member
Registered: 2007-06-02
Posts: 314
Website

Re: [code] should use monospace font...

I'm using the default theme for the forum.

Turns out the issue was on my end. Dina isn't acceptable as a font in Firefox, despite being in the list...

I suppose this topic should be closed, haha.

Offline

#6 2010-10-12 05:34:49

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: [code] should use monospace font...

@xelados stylish is your friend:

@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain("bbs.archlinux.org") {

div.postmsg p{
  font-family:Ubuntu !important;
}
pre {
  font-size:1.3em !important; /* \[code\] too small by default */
}
}

This silver ladybug at line 28...

Offline

Board footer

Powered by FluxBB