Skip to content

Commit

Permalink
Add guifont format for gtk2
Browse files Browse the repository at this point in the history
This will improve font rendering on gvim. Currently fonts are
output with random kerning sizes due to gtk supporting a different
format for guifont.
  • Loading branch information
Gerard (Gerry) Caulfield authored and Gerard (Gerry) Caulfield committed Jul 6, 2012
1 parent 44a7315 commit 28a11e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,11 @@
if has('gui_running')
set guioptions-=T " remove the toolbar
set lines=40 " 40 lines of text instead of 24,
set guifont=Andale\ Mono\ Regular:h16,Menlo\ Regular:h15,Consolas\ Regular:h16,Courier\ New\ Regular:h18
if has("gui_gtk2")
set guifont=Andale\ Mono\ Regular\ 16,Menlo\ Regular\ 15,Consolas\ Regular\ 16,Courier\ New\ Regular\ 18
else
set guifont=Andale\ Mono\ Regular:h16,Menlo\ Regular:h15,Consolas\ Regular:h16,Courier\ New\ Regular:h18
endif
if has('gui_macvim')
set transparency=5 " Make the window slightly transparent
endif
Expand Down

0 comments on commit 28a11e4

Please sign in to comment.