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 also http://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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to