Wednesday, April 17, 2013

Re: Using same font looks bad in different computers / configurations

On 16/04/13 16:53, skeept wrote:
> Hi,
>
> when using vim in cygwin the font looks really bad when compared when the windows version.
>
> I also compiled vim in sunos 5.9 and 5.10. The gvim version in the 5.9 looks much better.
>
> Can anyone give me hints on how to configure vim to have the font look better on sunos 5.10?
>
> Regards,
>
> Jorge
>

When using Vim in a console (be it Windows cmd.exe, Cygwin bash, the
Linux text console, Mac Terminal, or any of a number of emulators
displaying through X11 such as xterm, mlterm, konsole, gnome-terminal,
etc., Vim has no knowledge of the font face, the terminal does it all.

When using gvim (the Vim GUI), it can use any monospace (i.e.
fixed-width) font installed on your computer (GVIM for GTK2 GUI can
actually use any installed font at all but if you try to use a
non-monospace font the result will be ugly anyway.) You can set the font
face, the character size, and sometimes some other attributes, by means
of the 'guifont' aka 'gfn' option. For details, see
http://vim.wikia.com/wiki/Setting_the_font_in_the_GUI

If you want to use a different font on different operating systems, you
can do it by setting 'guifont' in various branches of an :if … :elseif …
:elseif … :else … :endif statement block; the above wiki page has an
example of that.


Best regards,
Tony.
--
Hacker's Law:
The belief that enhanced understanding will necessarily stir a
nation to action is one of mankind's oldest illusions.

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment