On 23/01/10 11:21, Nicolas Aggelidis wrote:
have you seen this?

http://developers.slashdot.org/story/10/01/17/0715219/Programming-With-Proportional-Fonts?from=rss&utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+Slashdot%2Fslashdot+%28Slashdot%29

whats your opinion?

is there anyway to use some proportional fonts ,like Lucida Sans, in
gvim (windows/linux)?


best regards,
nicolas


I haven't yet read this whole thread, but it must first be understood that Vim is just a text editor, not a fancy WISYSIG word processor. One of its fundamental characteristics is the use of a fixed-size character cell across the whole screen, with the following characteristics: - The fixed cell concept does not apply to menus, tooltips and GUI-style tab text, some or all of which are styled directly by the OS or the graphical interface, not by the "editor" part of gvim. - Most characters occupy one cell each; "wide" CJK characters occupy two cells each; some particular "file" characters (most notably the "Horizontal Tabulation" control character, 0x09) are represented by two or more "screen" characters, each of which occupies one cell; if a "wide" CJK character would start on the last cell of a screen line, and 'wrap' is on, then the whole character is moved over to the next screen line.

For this reason, most versions of gvim will not let you select a 'guifont' which doesn't define itself as a "monospace" i.e. fixed-width font. The *only* exception is gvim with GTK+2 GUI (available on X11 systems only, thus not on Windows), which accepts any font installed on your system, but if you try to make it use a proportional font, the results are almost always ugly, because in that case gvim will try to fit the variable-width glyphs into its fixed-width character cell, with the result that particularly "narrow" glyphs (such as lowercase L) will look surrounded by a lot of white space, and that "wide" glyphs (not in the CJK sense: think of lowercase M) will look cramped at best, and may get clipped if they are actually wider than the character cell. This is particularly visible with proportional fonts for the Arabic script, where "final" and "isolated" glyphs are usually extremely wide compared to "initial" and "medial" ones -- typically in a ratio of 4 or 5 to 1 or even more, depending on the font and on the character.


Best regards,
Tony.
--
Surprise your boss.  Get to work on time.

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

Reply via email to