Re: about fonts : from ubuntu to windows

2006-10-28 Thread victor NOAGBODJI

Thanks Tony.


Re: about fonts : from ubuntu to windows

2006-10-27 Thread John Degen
- Original Message 
From: victor NOAGBODJI [EMAIL PROTECTED]
To: vim@vim.org
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

hth,

John 

-- 
Sane sicut lux seipsam,  tenebras manifestat, sic veritas norma sui,  falsi 
est. -- Spinoza







RE: about fonts : from ubuntu to windows

2006-10-27 Thread David Fishburn
 

 -Original Message-
 From: John Degen [mailto:[EMAIL PROTECTED] 
 Sent: Friday, October 27, 2006 9:25 AM
 To: victor NOAGBODJI; vim@vim.org
 Subject: Re: about fonts : from ubuntu to windows
 
 - Original Message 
 From: victor NOAGBODJI [EMAIL PROTECTED]
 To: vim@vim.org
 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



Re: about fonts : from ubuntu to windows

2006-10-27 Thread John Degen

- Original Message 
From: victor NOAGBODJI [EMAIL PROTECTED]
To: vim@vim.org
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



Sorry link should read:

http://ftp.gnome.org/pub/GNOME/sources/ttf-bitstream-vera/1.10/

:)

John



-- 
Sane sicut lux seipsam,  tenebras manifestat, sic veritas norma sui,  falsi 
est. -- Spinoza







Re: about fonts : from ubuntu to windows

2006-10-27 Thread victor NOAGBODJI

Thanks a lot for helping.


Re: about fonts : from ubuntu to windows

2006-10-27 Thread A.J.Mechelynck

victor NOAGBODJI wrote:

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



Set the 'guifont' option. What to set it to will depend on which language you 
are using. For Latin alphabet on Windows I recommend Lucida_Console; however 
it has no Arabic glyphs and its Cyrillic glyphs are not 100% fixed-width so 
for Russian and Arabic I fall back on Courier_New, which is less elegant but 
quite readable and supports many non-Latin alphabetic languages. For CJK 
(Chinese-Japanese-Korean) I use MingLiU but there are others.


For example, for Latin alphabet I might use

:set guifont=Lucida_Console:h10:cDEFAULT


To see a fonts menu in gvim for Windows (and also in some but not all other 
flavours of gvim), use :set guifont=*.


If you want to slightly adjust what is already set, you can use :set 
guifont=Tab where Tab means hit the Tab key. This method can be used in 
'nocompatible' mode with any non-boolean option. It will fill-in the current 
value on your command-line, with escaping slashes if needed, and you can edit 
it in-place, then accept the changes with Enter or discard the changes with 
Esc. Or once you have exactly what you want, :set guifont=Tab will 
display on the command-line exactly what you need to write into your vimrc or 
gvimrc in order to set it that way every time.


Notes:
1. After using the guifont=* menu, the language setting is IMHO usually too 
strict; in my experience it works best by replacing :cANSI, :cBALTIC or 
whatever by just :cDEFAULT which lets gvim choose the appropriate glyphs (in 
the various language variants of that same font) for any language you might be 
using.
2. The line :set guifont=something should either go in your gvimrc, or, if 
you put it in your vimrc, be bracketed by if has('gui_running'). Otherwise 
that line would give you an error if you were to run the console version of 
Vim, which doesn't know about 'guifont'.



Best regards,
Tony.