Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Good font for code presentations? [closed]

Tags:

fonts

There's a couple of good questions regarding screen fonts for coding.

I'm putting together some Keynote presentations that will contain

  • code fragments

  • screen dumps of terminal windows

And the usual Courier display is looking a bit tired.

What are some good fonts for each of these? I'm especially interested in the terminal window dumps, to make sure they are legible. Or perhaps I can cut and paste the characters from the terminal window and apply some formatting to make it look screen-dumpish?

My main goal are

  • legible on screen and in printed outlines

  • the screen dump especially should be legible, but still identifiable as a screen dump

  • demonstrate I'm a person of visual taste and refinement, lol.

like image 464
Mark Harrison Avatar asked Jun 20 '09 23:06

Mark Harrison


People also ask

What font is used for code blocks?

We use monospace fonts to keep code aligned. Courier is just one of many monospace fonts. They are also called fixed-width fonts.


2 Answers

I prefer Consolas.

like image 140
Andrew Weir Avatar answered Nov 02 '22 22:11

Andrew Weir


If you are doing a presentation, and you don't care about anything lining up, Verdana is a good choice.

If you are going to distribute your presentation, use a font that you know is on everyone's machine, since using something else is going to cause the machine to fall back to one of the common fonts (like Arial or Times) anyway.

If you do care about things lining up, and are not distributing the presentation, consider Consolas:

alt text

It is highly legible, reminiscent of Verdana, and is monospaced. The color choices are, of course, a matter of taste.

like image 26
Robert Harvey Avatar answered Nov 02 '22 22:11

Robert Harvey