Poll

What is your best font for source code editing?

Courier New
1 (14.3%)
Microsoft Consolas
2 (28.6%)
Inconsolata
0 (0%)
Dina
0 (0%)
MonteCarlo
0 (0%)
Envy Code R
1 (14.3%)
Bitstream Vera Sans Mono
1 (14.3%)
Monaco
1 (14.3%)
Corbel
0 (0%)
Input font family
0 (0%)
Source Code Pro
1 (14.3%)
Hasklig
0 (0%)

Total Members Voted: 5

Author Topic: Best font for source code editing  (Read 13849 times)

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2161
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Best font for source code editing
« on: September 22, 2008, 09:38:06 pm »
There are several reasons to use monospaced font for source code editing.

First reason: only with monospaced font, indented text would be placed on same horizontal level. Even if indented block starts not from line start.
Second reason: block/column selection works well only with monospaced font.

Here are some monospaced fonts that fit best for code editing:

Courier New - most standard, installed on every Windows system, has rather big Unicode char set (on XP and higher)
Microsoft Consolas – visually better then Courier New, installed by default on Vista and higher, has very big Unicode char set.
Inconsolata – perfect font for source editing, small, distributed with Open Font License, but bold style, for my taste is too thick. Also, has only European char set.
Dina - another free programmers font. User comment: In my HE it looks like that - cool and solid by Arthur.

In the HippoEDIT, font can be adjusted for every syntax, but by default all fonts’ settings are inherited from Default syntax schema (only Plain Text overrides it by Lucida Console, to be similar to Notepad).
You can find font settings in main menu: Tools->Options->Syntax Settings->Default (or any interested syntax) ->Fonts & Colors. If Show only monospaced fonts flag is not set, then on all monospaced fonts in list would be highlighted with a color. If you want to use font from parent syntax, just select inherit from Parent Syntax Name in the list. This is first entry.

If you can suggest something better, just post here, I would update list with recommendations.

Just have found perfect article with monospaced font comparison on CodeProject.com from Hans Dietrich. Article contains big set of monospace font examples with preview and description.
« Last Edit: April 07, 2009, 10:13:31 am by alex »

allen

  • Guest
Re: Best font for source code editing
« Reply #1 on: April 15, 2009, 05:18:28 pm »
My personal favorite font is MonteCarlo.  It is a smooth sans serif font--sort of a fixed width verdana.  It's tiny, but remarkably readable at its fixed 8pt size. 

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2161
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: Best font for source code editing
« Reply #2 on: May 03, 2009, 10:34:51 pm »
One more good monspaced programers font (from programmer to programmers):
http://damieng.com/blog/2008/05/26/envy-code-r-preview-7-coding-font-released

knn

  • Guest
Re: Best font for source code editing
« Reply #3 on: July 31, 2010, 08:12:03 pm »
« Last Edit: August 01, 2010, 09:20:43 pm by alex »

Offline kryten

  • Registered User
  • Newbie
  • *
  • Posts: 20
  • Karma: +2/-0
    • View Profile
Re: Best font for source code editing
« Reply #4 on: August 24, 2010, 08:37:48 pm »
My favourites are:-

Monaco
Bitstream Vera Sans Mono
Envy Code R
Consolas
Corbel ( Surprisingly readable and pleasant to look at )

Cheers,
Stuart

« Last Edit: September 18, 2014, 11:49:56 pm by alex »

Offline vi.

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
  • Code Yourself!
    • View Profile
Re: Best font for source code editing
« Reply #5 on: December 18, 2010, 05:17:23 pm »
I tried almost every monospaced font available on internet.
My favorite list;
- Monaco
- Envy Code R
- Bitstream Vera Sans Mono

Offline Ramon

  • Registered User
  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Best font for source code editing
« Reply #6 on: December 20, 2010, 02:32:28 am »
My requirements for fonts based on monotype and most complete Unicode support.

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2161
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: Best font for source code editing
« Reply #7 on: December 20, 2010, 12:24:07 pm »
Yes, full Unicode support is also valid argument. Most MS fonts have full Unicode set, but Envy Code R for example is only English (for rest I do not remember).

Offline Anonymous

  • Anonymous
  • Jr. Member
  • **
  • Posts: 77
  • Karma: +0/-0
    • View Profile
Re: Best font for source code editing
« Reply #8 on: December 20, 2010, 12:38:45 pm »
DejaVu Sans Mono - it designed for ClearType, and have Cyrillic characters.
Microsoft Consolas is good, but on XP its only intended for licensed users of Microsoft Visual Studio 2005 or 2008.

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2161
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: Best font for source code editing
« Reply #9 on: September 18, 2014, 11:49:07 pm »

Offline SolarAxix

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Best font for source code editing
« Reply #10 on: November 13, 2014, 04:31:22 pm »
I am currently using DejaVu Sans Mono, which was already mentioned, and I like it quite a bit.

I would like to know how I can make it the default font in HippoEDIT where I wouldn't need to go inside each Syntax type to change it.
« Last Edit: November 13, 2014, 04:32:57 pm by SolarAxix »

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2161
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: Best font for source code editing
« Reply #11 on: November 13, 2014, 07:20:53 pm »
In HippoEDIT all syntax schemes inheriting from Default schema. Than from Default Source and Default Text.
And on every inheritance layer (you see inheritance chain in any Fonts and Colors in breadcrumb above) you can overwrite the font properties.

So, in default configuration, it is enough to changed Font Name for Default Source and that is all. XML inherits from Default Text, if you need it, you can also overwrite it for XML or for Default Text.

P.S: At least so it is designed :/. If you see in any Font and Colors section "Consolas" - it is a bug, I will fix in next build... But overwriting in "Default Source" still works, even it shown wrong.
« Last Edit: November 13, 2014, 07:45:51 pm by alex »

Offline SolarAxix

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Best font for source code editing
« Reply #12 on: November 13, 2014, 07:30:02 pm »
Thanks Alex! It was easy to change the Default font using the method you desrcibed.

 

Related Topics

  Subject / Started by Replies Last post
5 Replies
3147 Views
Last post June 30, 2009, 09:19:17 am
by alex
3 Replies
4696 Views
Last post September 15, 2010, 08:13:09 am
by kryten
3 Replies
2479 Views
Last post April 27, 2010, 06:54:10 pm
by alex
1 Replies
1436 Views
Last post April 23, 2012, 11:49:19 am
by alex
2 Replies
1922 Views
Last post August 18, 2012, 02:47:13 am
by false007