Any Vim GUI can set the font; the problem is that only some of them (not
including yours, apparently) can tell you from which fonts it is
possible to choose. So you'll have to guess.
If you have the LucidaTypewriter font installed (on the computer where
gvim is running), you might try
:set gfn=-*-lucidatypewriter-medium-r-normal-*-*-90-*-*-m-*-*
or else, if you have a Courier font installed there, you might try
:set gfn=-*-courier-medium-r-normal-*-*-90-*-*-m-*-*
(where 90 is the size, in tenths of point I think: the larger the
number, the bigger the font). Similarly for other font faces: I'm just
mentioning these two because they are fairly common, so there's a
substantial chance that you've got them. The -m- near the end is
essential: it means "monotype" (i.e. fixed-width); Vim won't use any
other kind of font (except on GTK2, where other kinds look ugly anyway).
Note that if in the meantime you have installed a GTK2 version of Vim,
the above settings won't work (but GTK2 gvim has the nice ":set gfn=*"
menu, so this whole discussion is moot in that case).
For more details, including how to set the font in a vimrc which is to
be used on various versions of gvim and possibly on various OSes, see
http://vim.wikia.com/wiki/Setting_the_font_in_the_GUI
Best regards,
Tony.
--
To understand this important story, you have to understand how the
telephone company works. Your telephone is connected to a local
computer, which is in turn connected to a regional computer, which is
in turn connected to a loudspeaker the size of a garbage truck on the
lawn of Edna A. Bargewater of Lawrence, Kan.
Whenever you talk on the phone, your local computer listens in. If it
suspects you're going to discuss an intimate topic, it notifies the
computer above it, which listens in and decides whether to alert the
one above it, until finally, if you really humiliate yourself, maybe
break down in tears and tell your closest friend about a sordid
incident from your past involving a seedy motel, a neighbor's spouse,
an entire religious order, a garden hose and six quarts of tapioca
pudding, the top computer feeds your conversation into Edna's
loudspeaker, and she and her friends come out on the porch to listen
and drink gin and laugh themselves silly.
-- Dave Barry, "Won't It Be Just Great Owning Our Own
Phones?"
":help 'guifont'" says...
======================================
For Win32, GTK, Mac OS and Photon: >
:set guifont=*
< will bring up a font requester, where you can pick the font you want.
======================================
... which implicitly means that ":set guifont=*" is not possible for
Athena GUI. And "set guifont=*" does not work indeed with Athena
GUI. It gives:
E236: Font "*" is not fixed-width
E596: Invalid font(s): guifont=*
Motif is not listed either, but doing ":guifont=*" with Motif does
bring a popup window to chose the font. So I think Motif should
be listed in the help page:
$ diff -c options.txt.orig options.txt
*** options.txt.orig 2010-01-01 11:39:25.502514991 +0100
--- options.txt 2010-01-01 11:39:31.377465863 +0100
***************
*** 3250,3256 ****
the case of X). The font names given should be "normal" fonts. Vim
will try to find the related bold and italic fonts.
! For Win32, GTK, Mac OS and Photon: >
:set guifont=*
< will bring up a font requester, where you can pick the font you want.
--- 3250,3256 ----
the case of X). The font names given should be "normal" fonts. Vim
will try to find the related bold and italic fonts.
! For Win32, GTK, Motif, Mac OS and Photon: >
:set guifont=*
< will bring up a font requester, where you can pick the font you want.
-- Dominique
I'll change it, thanks.
--
From "know your smileys":
O:-) Saint
/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///