What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 150 Stack Exchange communities.

I quite like the look of the font used in the code blocks that appear on Stack Overflow.

What, dear listener, is the font face used for such?

share|improve this question

migrated from stackoverflow.com Jan 19 '10 at 2:53

This question came from our site for professional and enthusiast programmers.

3 Answers 3

It's the first font in the following list that is installed on your system:

  • Consolas
  • Monaco
  • Lucida Console
  • Liberation Mono
  • DejaVu Sans Mono
  • Bitstream Vera Sans Mono
  • Courier New

For more information, look at the CSS file in Firebug.

share|improve this answer
+1 It's good to make the point that it depends on what fonts are installed in the client. – pavium Jan 19 '10 at 4:53
and the browser defined ones... – JuanManuel LF Jul 9 '12 at 16:34
code {
  font-family:Consolas,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New;
share|improve this answer
No monospace? I am disappoint. – Ignacio Vazquez-Abrams Jan 19 '10 at 2:48
Edited and fixed ;) – schnaader Jan 19 '10 at 2:48
@Ignacio: There's a reason monospace isn't used, and that reason is WebKit, which renders it differently than all other browsers. – John Rudy Jan 19 '10 at 14:40

See Super User:

share|improve this answer
Careful, Arjan, you are currently implying that there would be useful information on SU? That would be shocking! – Gnoupi Jan 19 '10 at 8:46
@Gnoupi, you know how all the questions that are too difficult for SO are delegated to SU. ;-) – Arjan Jan 19 '10 at 9:51

You must log in to answer this question.