Tuesday, October 22, 2013

Re: Control of font via syntax highlighting

On Tue, October 22, 2013 03:44, Suresh Govindachar wrote:
> Good that it is possible -- but how exactly (I am on Windows)? The
> awkwardness and other issues might be OK for my purposes.

hi Normal ... font=Courier_New:h10:cANSI
hi Special ... font=Consolas:h12:cANSI
hi Ignore ... font=Courier_New:h14:cANSI

replace ... by the usual highlighting attributes you need
(e.g. guifg=... ctermfg=..., etc)

> > No, it is not possible,

As I said, it is possible.

> Does the conclusion assume that one wants to continue using Vim
> as an editor while using different sized fonts? My purpose is just
> to have Vim create a display, with different parts of the display
> being of different font sizes.

Depends on what exactly you want. It works more or less ok, if the font
size doesn't vary too much, because otherwise, since the character cells
do not change, the font might look to wide or too narrow.

Best,
Christian

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