On 2008-12-20, Tony Mechelynck wrote:
>
> On 20/12/08 04:22, anhnmncb wrote:
>> Hi, list,
>>
>> As title, sometimes a text maybe has some charactors that guifont foo, which
>> is set by :set guifont=foo doesn't contain, in this case, I don't know if vim
>> has mechanism that use another font that has this charactor for displaying?
>>
>
> If you were on Unix/Linux, and using gvim with GTK2, it would do it for 
> you automagically. Alas, your mail User-Agent string seems to imply 
> you're on Windows, and the Windows font backend isn't that clever.
>
> If your Windows 'guifont' ends in :cANSI or somesuch, try using 
>:cDEFAULT instead. This gives gvim more latitude to choose glyphs from 
> related fonts.
>
> If you edit multilingual pages in several scripts, like my homesite 
> frontpage http://users.skynet.be/antoine.mechelynck/ then sometimes, try 
> as you may, you won't find a single font with all the glyphs on the 
> page. In that case you may have to change the 'guifont' according to 
> which part of the page you are currently modifying. (For instance, for 
> that page I use "Lucida Console" or "Bitstream Vera Sans Mono" for 
> Latin, "Courier New" for Cyrillic and Arabic, "MingLiU" or "FZFangSong" 
> for Chinese/Japanese. Also I use larger font sizes for Arabic and CJK 
> than for Latin and Cyrillic.) On Windows the ":set gfn=*" menu works 
> quite well, but I recommend trimming down the result afterwards (by 
> using ":set gfn=<Tab>" and editing the command-line) to keep only the 
> name (you wouldn't remove that ;-) ), plus one size parameter, and 
>:cDEFAULT as said above -- see 
> http://vim.wikia.org/wiki/Setting_the_font_in_the_GUI for details.

:set guifont can change font, but that's not what I want, because:

1. I have to set it manually;

2. Maybe a font that has the charactor but doesn't have some others;

3. Maybe the font has that charactor but looks ugly, so I want a prefer font
   for most text, but another font for just some charactors that my prefer
   font doesn't have.

The case I wanted is that: when a charactor needs to be displayed but current
guifont doesn't have, then gvim will try to choose another font for it.

>
>
> Best regards,
> Tony.


-- 
Regards,
anhnmncb


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to