I would like to put on record that it would be really neat if (g)vim allowed substitution of missing character glyphs. I deal with a lot of content with funky Unicode characters...
In our typesetting software there are two methods for achieving this. Perhaps such a feature in gvim would follow one of these approaches: 1. Have a "default" font that is used when the primary font has a missing glyph. 2. Enable the user to build a virtual font, which combines character ranges from one or more fonts into one virtual font encoding. While I'm in wishlist mode, ideally you could also use standard proportional fonts (not just those flagged as being monospaced). To use proportional fonts in gvim right now, I need to fiddle with the font's flags in FontForge. -G On Apr 15, 4:56 pm, Tony Mechelynck <[email protected]> wrote: > On 15/04/10 08:24, Boyko Bantchev wrote: > > > In Vim 7.2 under Windows XP, I cannot see some characters in utf-8 > > encoded files, e.g. ∀ (U+2200), ∃ (U+2203), ∈ (U+2208), ℝ (U+211d) > > etc. However, such a file looks o.k. in Firefox. In Vim I use > > Courier New font, which I believe is also used for plain text in > > the browser. > > > Do others have the same experience? Why is it so? > > > Best, > > Boyko > > Well, Vim is perfectly capable of displaying these characters... if your > 'guifont' (in the case of gvim) or whatever font is used by your > terminal (in the case of console Vim) has a glyph for them. You are > using gvim, aren't you? If you aren't, maybe you should. > > I'm not sure what algorithm Firefox for Windows uses when there is a > missing glyph in a font, it may depend on your "Font" preferences and/or > (in HTML) on whether there are more than one font faces mentioned in the > face= attribute to the <font> tag or in the "font-family" style rule: if > several fonts are mentioned, HTML and CSS standards mandate that, _for > each character_, the first (leftmost) installed font which has a glyph > for that character will be used. In gvim, OTOH, even though you may > specify more than one font in the 'guifont' option, the first > _installed_ one will be used for all characters to be displayed, > regardless of whether that font has a glyph for any particular character > (GTK2 gvim is an exception but it runs only on X11, not on "native" > Windows). > > So I suggest that you try other fonts, by means of > > :set guifont=* > > until you find one which has the required glyphs. (I would have thought > Courier_New had them, but, well, maybe it doesn't.) > > See alsohttp://vim.wikia.com/wiki/Setting_the_font_in_the_GUI > > Best regards, > Tony. > -- > An English judge, growing weary of the barrister's long-winded > summation, leaned over the bench and remarked, "I've heard your > arguments, Sir Geoffrey, and I'm none the wiser!" Sir Geoffrey > responded, "That may be, Milord, but at least you're better informed!" -- You received this message from the "vim_use" 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 Subscription settings: http://groups.google.com/group/vim_use/subscribe?hl=en
