Sunday, August 22, 2010

Visual Studio 2010 vs. Inconsolata font

Hello,

After several days playing with the Silk style for Visual Studio 2008/2010 I’ve realized that you can’t achieve more or less good overall results with default fonts like Consolas, Courier New or something. I know that there is a perfect font, named Inconsolata, and what is more important, its author made it free. Here is how it looks like:

The same font in action:

I must make a remark that the font is being redistributed in OpenType format. I was happy using the font in Visual Studio 2008 but unfortunately, 2010 version has different Text Editor component, written totally on WPF and these things together make impossible usage of all other fonts except TrueType ones. WTF???

Luckily, I’ve found a workaround:

  1. Download the font from the official site.
  2. Go to online font converter, and convert OpenType Inconsolata font into TrueType format.
  3. Install TrueType version onto your system.
  4. Voilà!

VS

Hope that will be useful.

UPDATE:

Here is the second chapter of this fascinating story.

17 comments:

  1. пробовал конвертить разными приблудами этот шрифт - получаетчся корявый в 11 размере. У тебя нормально сконвертилось?

    ReplyDelete
  2. Честно говоря - не очень, особенно по сравнению с теми же DejaVu Sans Mono или Droid Sans Mono.

    ReplyDelete
  3. ясно - значит останусь на Consolas... а ксати нельзя научить VS видеть OpenType шрифты?

    ReplyDelete
  4. Насколько я помню недавнюю дискуссию по этому вопросу: редактор кода в VS 2010 (написанный на WPF) не умеет работать со шрифтами, отличными от TrueType, и это реально высаживает.

    ReplyDelete
  5. Dave Crossland pushed an TrueType version to the Google font repository:
    http://code.google.com/p/googlefontdirectory/source/browse/inconsolata/?r=fffda675769720a297f4d239e7065f751bbe655f

    ReplyDelete
  6. Thanks a lot, will try the updated font soon.

    P.S.
    Merry Christmas and Happy New Year!

    ReplyDelete
  7. The Google version is beautiful, crisp and displays perfectly in VS2010. It's also anti-aliased. Thanks to whoever posted the link!

    ReplyDelete
  8. Haven't you experienced troubles with brackets rendering as it is described here: http://dmitrimaximov.blogspot.com/2010/12/visual-studio-2010-vs-inconsolata-font.html ?

    ReplyDelete
  9. I'm having issues with the google-ttf version, too!
    Exactly the issues you mention, braces rendered in bold. And the first thing i did instinctively was to check in Notepad, just like you did :-)

    This ttf version worked perfectly in VS2008. Looked really sexy. I preferred inconsolata to consolas. Why, microsoft ?????

    ReplyDelete
  10. Update:

    I'm having problems rendering "AnonymousPro" font as well in Visual Studio 2010. Kerning is messed-up.
    This too worked beautifully in VS 2008. Why, microsoft ?????

    --Neel

    ReplyDelete
  11. Neel,

    It seems that this won't be fixed, at least in the observable future. Microsofties are happy with their Consolas font and won't do anything to provide real support for OTF alternatives.

    Now I'm using Droid Sans Mono font, it is much better than the standard one (Consolas), almost as good as Inconsolata was.

    ReplyDelete
  12. life saving buddy. the assholes at Microsoft made the IDE so worse. they've got to pay attention to the details.

    ReplyDelete
  13. Right. Thanks for supporting, Sarath.

    ReplyDelete
  14. very useful information, thanks! :))

    ReplyDelete
  15. This article was written by a real thinking writer without a doubt. I agree many of the with the solid points made by the writer. I’ll be back day in and day for further new updates. Salesflow

    ReplyDelete
  16. Cool and I have a neat offer you: Who Does House Renovation green home remodeling

    ReplyDelete