> -----Original Message-----
> From: John Degen [mailto:[EMAIL PROTECTED] 
> Sent: Friday, October 27, 2006 9:25 AM
> To: victor NOAGBODJI; [email protected]
> Subject: Re: about fonts : from ubuntu to windows
> 
> ----- Original Message ----
> From: victor NOAGBODJI <[EMAIL PROTECTED]>
> To: [email protected]
> Sent: Friday, October 27, 2006 2:06:56 PM
> Subject: about fonts : from ubuntu to windows
> 
> Hello all,
> 
> I'm quite a newbie to Vim. I've been using it under ubuntu dapper.
> With moria color plugin, the font was nice, easy to read. I 
> think it's the default system font of ubuntu or something...
> 
> Now under windows xp. It's bold, hard to read. It's the 
> default system font. Now how can I change that to a nice 
> clean, easy to read font?
> 
> thanks
> 
> I like Bitstream Vera Sans Mono (use :set 
> guifont=Bitstream_Vera_Sans_Mono:h14:cANSI)
> 
> you can download the font at 
> 
> http://www.bitstream.com/font_rendering/products/dev_fonts/vera.html
> 

I add the following to my vimrc file:

" Change default FONT 
" Set personal font, here is a review of different ones:
"   http://www.kuro5hin.org/story/2004/12/6/11739/5249
" Bitstream Vera Fonts, downloaded from:
"   http://www.gnome.org/fonts/
if has('win32') 
    if filereadable(expand('$SystemRoot').'/fonts/Vera.ttf')
        " For normal 11 point font
        "   set guifont=Bitstream_Vera_Sans_Mono:h11:cANSI
        " For bold 11 point font
        set guifont=Bitstream_Vera_Sans_Mono:h11:b:cANSI
    elseif filereadable(expand('$SystemRoot').'/fonts/Raize.fon')
        " Raize (12 pt bold)
        set guifont=Raize:h12:b:cANSI
    endif
endif

Since I have many machines I use my same installation of Vim on, not all of
them have the fonts I want.  This will only set the font if it exists on the
machine, plus a second favourite (Raize).


Does anyone know how to do the same thing in Ubuntu (or *nix in general)?
I am not sure where the fonts get stored on a *nix system.

Dave

Reply via email to