0

I really like the font that is used in the editor window into which I am typing this right now - what is it?

1 Answer 1

2

According to the CSS, it'll be: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif

The first one of those that's installed on your computer is the one you're seeing.

If you're on Windows Vista or 7, or have Office 2007 or Visual Studio 2010 installed, you'll have Consolas. If you're on a recent Mac, you'll be seeing Menlo or Monaco. You'll probably see one of the rest if you're on Linux.

monospace will map to whatever your browser has chosen as the monospace font. Unless you're on a recent Ubuntu or other distro that's using newer fonts, chances are that your default monospace font is already one of those listed above.

serif will map to your default non-monospaced serif font.

5
  • Hmm... there must be something more to it. I definitely have Consolas installed, but when I set the font to Consolas in an editor (e.g. eclipse, Notepad++), Unicode characters don't show up properly, while in the edit box they do. What font is used to display the Unicode characters in the edit box? Jan 30, 2012 at 5:17
  • @HighCommander4: That depends on the Unicode fallback of your OS & browser.
    – SLaks
    Jan 30, 2012 at 5:26
  • @Slaks: I see. How can I find out what that fallback is? Jan 30, 2012 at 5:40
  • I don't know; sorry.
    – SLaks
    Jan 30, 2012 at 5:41
  • 2
    If you're using a browser with good developer tools (Safari, Chrome, Firefox + Firebug, etc), try firing it up and manually editing the active CSS for the editor element. That's what I did to pull out the list of fonts. Eliminate them one by one until you get a font change, and you discover the right font.
    – Charles
    Jan 30, 2012 at 6:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .