Handle overly tall glyphs more elegantly [was: Glyphs for vim airline plugin don't render correctly]
By simplex.li... on January 18, 2015 11:23 (imported from Google Code)
What steps will reproduce the problem?
-
Install latest version of vim-airline plugin from
https://github.com/bling/vim-airline using pathogen or vundle -
Install fonts with powerlyne glyphs in the system (I tried
only3 various one - Source Code Pro, Menslo LG M, DejaVu Sans Mono
in all of them there is this issue). Modified fonts located here:
https://github.com/powerline/fonts or you can youse one from my machine
(see attach "DejaVu Sans Mono for Powerline.ttf") -
Set in Profiles->Text->Regular Font and in Profiles->Text->Non-ASCII Font
new font -
Place in .vimrc file this lines:
if !exists('g:airline_symbols')
let g:airline_symbols = {}
endif" unicode symbols
let g:airline_left_sep = '»'
let g:airline_left_sep = '▶ '
let g:airline_right_sep = '«'
let g:airline_right_sep = '◀ '
let g:airline_symbols.linenr = '␊'
let g:airline_symbols.linenr = ''
let g:airline_symbols.linenr = '¶'
let g:airline_symbols.branch = '⎇'
let g:airline_symbols.paste = 'ρ'
let g:airline_symbols.paste = 'Þ'
let g:airline_symbols.paste = '∥'
let g:airline_symbols.whitespace = 'Ξ'" powerline symbols
let g:airline_left_sep = ''
let g:airline_left_alt_sep = ''
let g:airline_right_sep = ''
let g:airline_right_alt_sep = ''
let g:airline_symbols.branch = ''
let g:airline_symbols.readonly = ''
let g:airline_symbols.linenr = ''(full .vimrc in attach)
-
restart vim
What is the expected output?
Expected output like in Mac OS X standard terminal.app
(see attached file with title terminal_standard.png)
What do you see instead?
Glyphs like for branch or head of arrows slightly go away
from the status lien (see attached file with title iterm_issue.png)
What version of iTerm2 are you using?
Build 2.0 (downloaded from the main page of the project http://iterm2.com/)
What OS version are you using?
Mac OS X 10.9.5
[DejaVu Sans Mono for Powerline.ttf](https://storage.googleapis.com/google-code-attachments/iterm2/issue-3378/comment-0/DejaVu Sans Mono for Powerline.ttf)