On 5 June 2013 06:28, Tony Mechelynck <[email protected]> wrote:

> 1. ":set guifont=Cousine\ 10" is only for gvim with GTK2 GUI. On Windows,
> AFAIK that can only exist for running under Cygwin X11 with the Cygwin DLL.
> For "native" Windows (running with no help of Cygwin or X11), you should
> use ":set guifont=Cousine:h10:cDEFAULT".
>
>
I am using Linux and thus gvim is running on top of GTK2.



> 2. You should set 'guifont' in your vimrc so it loads at the very start of
> GUI startup (it will be remembered until then). In the gvimrc I think it is
> too late.
>
>
This is very non-intuitive. I tried it, and it gets me the same result.
Specifically, I removed ~/.gvimrc and added 'set guifont=Cousine\ 10'
as the very first line of my ~/.vimrc , the result is the same.



> 3. Which sort of GUI you got is displayed near the top of the output of
> ":version".
>
>
Right, it is GTK2 as expected:

  VIM - Vi IMproved 7.3 (2010 Aug 15, compiled May 19 2013 18:32:57)
  Included patches: 1-918
  Compiled by ArchLinux
  Huge version with GTK2 GUI.  Features included (+) or not (-):
  [...]




> 4. See http://vim.wikia.com/wiki/Setting_the_font_in_the_GUI for details.
>
>
Thanks for the link and the answer




>
> Best regards,
> Tony.
> --
> "I had to hit him -- he was starting to make sense."
>
>
>
> On Fri, May 24, 2013 at 7:10 PM, Ivan Kanakarakis <[email protected]>wrote:
>
>> Hey people,
>>
>> I found a nice font called "Cousine".
>> Trying it on my running gvim window, with ':set gfn=Cousine\ 10'
>> I likec it and decided to make it the default when opening gvim.
>> So, I opened up ~/.gvimrc and edited it to:
>>
>>   colorscheme molokai
>>   set guifont=Cousine\ 10
>>
>> (that's the whole ~/.gvimrc)
>> Upon opening gvim I got this: http://i.imgur.com/FfZHYCR.png
>>
>> "Blindly" typing ':set gfn=' resets the font to monospace and show fine
>> If I continue with ':set gfn=Cousine\ 10' I get again the nice look of
>> this font.
>>
>> Asking on irc for possible explanations mgedmin prompted to try
>> adding 'gui' before setting the guifont, so changing my ~/.gvimrc to
>>
>>   colorscheme molokai
>>   gui
>>   set guifont=Cousine\ 10
>>
>> fixed it, and gvim now loads the font and works great.
>>
>> So, could this be a bug ?
>>
>> Let me note that if I change ~/.gvim to
>>
>>   colorscheme molokai
>>   set guifont=DejaVu\ Sans\ Mono\ 12
>>
>> then it loads that font fine, no need for 'gui'.
>>
>> I am using VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Apr 28 2013
>> 10:08:34)
>> and attached is the bugreport.txt
>>
>> Thanks,
>>
>> --
>> *Ivan c00kiemon5ter Kanakarakis*  >:3
>>
>> --
>> --
>> 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.
>>
>>
>>
>
>


-- 
*Ivan c00kiemon5ter Kanakarakis*  >:3

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