On 2008-12-20, Tony Mechelynck wrote: > > On 20/12/08 06:44, anhnmncb wrote: > [...] >> :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; > > So what? Of the fonts I use, none has both Arabic and Chinese glyphs, so > I change 'guifont' (manually) depending on whether I'm editing the > Arabic text in the page, or the Chinese. > >> >> 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. > > Well, the only solution I know for that requirement is: Move to Linux > and use GTK2.
Yes, when on BSD, I use it, but saddly my work needs me must be on windows too. > > There's one obscure sentence under ":help 'guifont'" saying that you can > have several comma-separated values in that option, but it seems to > imply that the first of them which is installed will be used globally, > not that the leftmost of them which has a glyph for any given character > will be used for that character. I may have misunderstood, but if the > selection is for each character separately you MUST select fonts which > all have the exact same height, the exact same width, and the baseline > at the exact same distance above the bottom of the character cell (in > all three cases with pixel accuracy). Yes, guifont list is work in this way: the first one in the list found in system is the global one, others following has no effect at all. Do you use urxvt? I think it has a very very useful ability is that: you can give a font list to it, then it will try them one by one when a charactor can't be displayed by the first one. I miss it, and I miss it in gvim! > > Regards, > Tony. -- Regards, anhnmncb --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
