Search code examples
vimwindows-7color-schemebold

How do I turn off all font hinting in gvim in Windows 7?


I have a font display problem while using gvim in Windows 7 with the Terminus font. Here's a sample:

1x enter image description here

3x enter image description here

I'm pretty sure it's trying to display casesensitive in bold, but Terminus.ttf is meant to be displayed with no anti-aliasing or hinting.

Even after removing every reference to "bold" from my colorscheme file, it still looks like this. Turning ClearType off makes it look worse. If it matters, my colorscheme is zenburn.

What could be causing this, and how can I fix it? Thanks!


Solution

  • I'm not sure this is an answer, but I cannot tolerate TrueType fonts in gvim when I'm working on Windows (or any other code editor on Windows, I suppose). I opt immediately for the bitmap fonts supplied by Linux/X11, in particular the miscfixed font set. They are far far more readable than any TTF font I've encountered, and are crisp & readable even at extremely small sizes (like 6px). They are completely immune to any font-smoothing or hinting monkey-business.

    Here's a picture I lifted from someone's blog post:

    Illustration of the miscfixed font

    I am not certain of a download location for the font set, but when on Windows I have typically installed the Cygwin environment and just copied the fonts from Cygwin to the Windows fonts directory.

    Note: There is a TTF implementation of this font out there somewhere, but it looks terrible, especially when ClearType is on. The true bitmap font is the way to go.