set guifont with commas FAILS on Linux
" .......1.........2.........3.........4.........5.........6....
<quote>
:help guifont

This is a list of fonts which will be used for the GUI version
of Vim. In its simplest form the value is just one font name.

When the font cannot be found you will get an error message.

To try other font names a list can be specified,
font names separated with commas.
The first valid font is used.
</quote>

I have tried the comma separated list on Mac and WinXP and it works.

But on Linux and it does NOT work.
Is this a bug, or am I specifying the guifont wrong?

Lubuntu gvim 7.3.547 (ubuntu 13.04 base)
Puppy Linux gvim 7.3.1209 (ubuntu 12.04 base)

Examples listed below are Mac (works), WinXP (works), Linux (fails):

" .......1.........2.........3.........4.........5.........6....
This works on Mac:

set antialias guifont=
  \Liberation_Mono_Bold:h14,
  \DejaVu_Sans_Mono_Bold:h14,
  \Menlo_Bold:h14,
  \Lucida_Sans_Typewriter_Bold:h14,
  \Courier_New_Bold:h14,
  \Courier_Bold:h14,
  \Monaco:h12,

let @a = &guifont
"aP
Liberation_Mono_Bold:h14,DejaVu_Sans_Mono_Bold:h14,Menlo_Bold:h14,Lucida_Sans_Typewriter_Bold:h14,Courier_New_Bold:h14,Courier_Bold:h14,Monaco:h12,

let @a = getfontname()
"aP
Liberation Mono Bold:14


With an **invalid font** correctly selects the next **valid** font:
-------------------------------------------------------------------

let @a = &guifont
"aP
LLiberation_Mono_Bold:h14,DejaVu_Sans_Mono_Bold:h14,Menlo_Bold:h14,Lucida_Sans_Typewriter_Bold:h14,Courier_New_Bold:h14,Courier_Bold:h14,Monaco:h12,

let @a = getfontname()
"aP
DejaVu Sans Mono Bold:14

" .......1.........2.........3.........4.........5.........6....
This works on WindowsXP:

set guifont=
  \Fixedsys:h14:cANSI,
  \Liberation_Mono:h12:b:cANSI,
  \Lucida_Console:h10:b:cANSI,

let @a = &guifont
"aP
Fixedsys:h14:cANSI,Liberation_Mono:h12:b:cANSI,Lucida_Console:h10:b:cANSI,

let @a = getfontname()
"aP
Fixedsys:h14:cANSI


With an **invalid font** correctly selects the next **valid** font:
-------------------------------------------------------------------

let @a = &guifont
"aP
FFixedsys:h14:cANSI,Liberation_Mono:h12:b:cANSI,Lucida_Console:h10:b:cANSI,

let @a = getfontname()
"aP
Liberation_Mono:h12:b:cANSI

" .......1.........2.........3.........4.........5.........6....
But... this does NOT work on Linux:

set guifont=
  \Liberation\ Mono\ Regular\ 11,
  \Droid\ Sans\ Mono\ Bold\ 12,
  \Monospace\ Regular\ 13,
  \DejaVu\ Sans\ Mono\ Book\ 12,
  \Fixed\ 13,

let @a = &guifont
"aP
Liberation Mono Regular 11,Droid Sans Mono Bold 12,Monospace Regular 13,DejaVu 
Sans Mono Book 12,Fixed 13,

let @a = getfontname()
"aP
Liberation Mono 11


With an **invalid font** it fails:
----------------------------------

set guifont=
  \LLiberation\ Mono\ Regular\ 11,
  \Droid\ Sans\ Mono\ Bold\ 12,
  \Monospace\ Regular\ 13,
  \DejaVu\ Sans\ Mono\ Book\ 12,
  \Fixed\ 13,

let @a = &guifont
"aP
LLiberation Mono Regular 11,Droid Sans Mono Bold 12,Monospace Regular 13,DejaVu 
Sans Mono Book 12,Fixed 13,

let @a = getfontname()
"aP
LLiberation Mono 11

Set individually it works:
--------------------------

" set guifont=Fixed\ 13
" set guifont=DejaVu\ Sans\ Mono\ Book\ 12
" set guifont=Monospace\ Regular\ 13
" set guifont=Droid\ Sans\ Mono\ Bold\ 12
  set guifont=Liberation\ Mono\ Regular\ 11

let @a = &guifont
"aP
Liberation Mono Regular 11

let @a = getfontname()
"aP
Liberation Mono 11

" .......1.........2.........3.........4.........5.........6....
Bill

-- 
-- 
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