On 01/02/13 20:37, Charles Campbell wrote:
Tony Mechelynck wrote:
On 01/02/13 18:11, Charles Campbell wrote:
James McCoy wrote:

On Feb 1, 2013 11:43 AM, "Charles Campbell"
<[email protected] <mailto:[email protected]>>
wrote:
I've found some more out -- it appears that several directories and
files got changed so that only root had access.  fc-list now shows
Luxi Mono fonts, for example.
However, I still can't get vim to accept

   :set guifont=Luxi\ Mono\ 10

and Luxi Mono doesn't show up on vim's font selector, either.
In the version output you posted before, it showed you are building
against the Motif gui toolkit. Is that intentional or another result
of the permissions problems you had?  I thought that format for
specifying 'guifont' was specific to GTK.

Here's my configure line:

./configure --with-features=huge --enable-perlinterp
--enable-pythoninterp --enable-cscope --enable-rubyinterp .  I'm using
motif and gtk, though.

Yes, GTK2 has a different format for 'guifont', incompatible with any
other Vim GUI flavour.

For details, see
    :help setting-guifont
    http://vim.wikia.com/wiki/Setting_the_font_in_the_GUI
My vim's status:

   * :set guifont=Luxi\ Mono\ 10   used to work (in fact, still does on
my home computer)
   * same configure command used on both my home computer and my work
computer
   * both systems run scientific linux 6.3, gtk, etc
   * haven't updated my home computer vim from 7.3.784; did do the
update with vim on my work computer
   * fc-list now shows the Luxi fonts are available
   * setting guifont=Luxi\ Mono\ 10 on my work computer shows "E596:
Invalid font(s): guifont=Luxi\ Mono\ 10

I've tried uninstalling Luxi fonts, reconfiguring, making, and
re-installing.  Luxi Mono 10 is still "invalid font" (under vim)
I've tried restarting X: (init 3, init 5)  Luxi Mono 10 is still
"invalid font" (under vim)

This means your home Vim is probably compiled with something else than GTK2.

For Motif you need the "other-X11" format. ":set gfn=*" (without the quotes) should work, giving you a dialog. The fonts may or may not be listed alphabetically. Luxi mono 10 (for Motif) might come out as something like

        :set gfn=*-luxi-medium-r-normal-*-*-100-*-*-m-*-*

The 2nd part (I tried -luxi-) is the font face, I'm not sure what Motif Vim will see on your system but in my experience (from when the default gvim for Linux was GTK1, which was also "other-X11") it's all in lowercase. -medium-r-normal- specify medium boldness, Roman (i.e. vertical, not italic) slant and normal (neither compressed nor wide) width. The number is the size and the -m- near the end is very important: it specifies Monospace (i.e. fixed-width) which is the only kind of fonts which any gvim other than GTK2 will accept. (GTK2 gvim will accept any font installed on your computer, but non-monospace fonts will look ugly.) A font all whose glyphs are the same pixel width, but which is not _declared_ as monospace, will not be accepted by Motif gvim, not even if you replace the -m- by -*-.

Each star means zero or more characters. See ":help XLFD" for details.


fc-list | grep Luxi shows:
Luxi Serif:style=Regular
Luxi Serif:style=Bold
Luxi Mono:style=Bold
Luxi Sans:style=Bold
Luxi Sans:style=Regular
Luxi Mono:style=Regular
Luxi Serif:style=Oblique
Luxi Serif:style=Bold Oblique
Luxi Mono:style=Oblique
Luxi Sans:style=Oblique
Luxi Sans:style=Bold Oblique
Luxi Mono:style=Bold Oblique

Appreciate your help,
Charles Campbell




Best regards,
Tony.
--
It is illegal for anyone to give lighted cigars to dogs, cats, and other
domesticated animal kept as pets.
                [real standing law in Illinois, United States of America]

--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Raspunde prin e-mail lui