A.J.Mechelynck wrote:
...........
and that seems to do stuff with -DFEAT_GTK12 flags etc etc, but still
no fonts. xlsfonts shows a big list, but I don't know what part of the
font name to pass in to set guifont. Certainly Courier/10 didn't seem
to work :(
I can actually get the makefile to do GTK2, but I'm not sure how that
will run with the rest of the system ie I don't currently have GTK2 on
the system.
Rather than edit the makefile, I set a number of configuration options
in the environment then use the Makefile as distributed. This will run
configure if it hasn't yet been run; after changing configuration
options and/or installing/uninstalling software, "make reconfig" must be
run in the src/ directory.
To successfully compile Vim, you need more than just the packages
required to run it; you also need "development" versions of all those
packages. For instance, you need some "x11-devel" package to compile
_any_ kind of GUI to run on an X11 system; you need some version of
gtk-devel or gtk2-devel to compile a GTK+1 or GTK+2 gvim respectively;
for a Gnome version you need gnome-devel in addition of all that is
needed for GTK; etc. For GTK1 (or any X11 GUI other than GTK2 and the
now unsupported kvim) the format of the 'guifont' option is neither
Courier/10 nor Courier\ 10 but something like
*-courier-medium-r-normal-*-*-120-*-*-m-*-*
Luckily the ports system should take care of all the dependencies and
after messing about I find I can put a
set guifont=8x13
into my .vimrc and then I can get the gui up. With the gui running I can
use the font menu to pick a more suitable one. It seems the standard
build worked fine. It's a bit silly that the gui knows about all the
fonts when started, but refuses to start unless a suitable default is
supplied. Anyhow alls well that ends well and this version seems to lack
the nasty font behaviour I saw with the PCBSD packaged version.
Thanks to all for their assistance
See
:help setting-guifont
:help mbyte-fonts-X11
:help XLFD
"USING RESOURCE FILES", a little lower than
:help E253
http://users.skynet.be/antoine.mechelynck/vim/compunix.htm
--
Robin Becker