sunaku / tamzen-font

💌 Bitmapped programming font, based on Tamsyn
Other
882 stars 29 forks source link

Some symbols not displaying in Vim-Airline #20

Closed JuliusSchumacher closed 5 years ago

JuliusSchumacher commented 5 years ago

Some of the Icons are missing in vim-airline I'm using URxvt and the wal.vim theme. .vimrc:

execute pathogen#infect()
syntax on
filetype plugin indent on
set number
set list
set tabstop=2
set shiftwidth=2
set encoding=utf-8

let g:airline_powerline_fonts = 1

colorscheme wal

.Xresources:

URxvt*font: -*-unifont-*-*-*-*-*-*-*-*-*-*-*-*
URxvt*font: -misc-tamzen-medium-r-normal--14-101-100-100-c-70-iso8859-1, -misc-tamzenforpowerline-medium-r-normal--14-101-100-100-c-70-iso8859-1, -gnu-unifont-medium-r-normal-sans-16-160-75-75-c-80-iso10646-1
URxvt.boldFont: -misc-tamzen-bold-r-normal--14-101-100-100-c-70-iso8859-1
URxvt.scrollBar: false
URxvt.internalBorder: 10
sunaku commented 5 years ago

Try viewing this portion of the Rakefile in your terminal (you can cat it): https://github.com/sunaku/tamzen-font/blob/master/Rakefile#L285-L290

Do the missing symbols appear now? :thinking: Also, could you post a screenshot?

JuliusSchumacher commented 5 years ago

The symbols work without issue in most places, but specifically the "î‚¡" (LN) symbol doesn't show up in the vim airline like this:

The odd part is that it does work when "greyed out" or just written normally:

My latest attempt to fix this has been to change my .vimrc to:

syntax on
filetype plugin indent on
set number
set list
set tabstop=2
set shiftwidth=2
set encoding=utf-8

let g:airline_powerline_fonts = 1

if !exists('g:airline_symbols') 
    let g:airline_symbols = {}
endif

" 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 = '☰'
let g:airline_symbols.maxlinenr = 'î‚¡'

colorscheme wal
let g:airline_theme='term'

let g:syntastic_python_checkers = ['pylint']

and my .Xresources to:

URxvt.boldFont: -misc-tamzen-bold-r-normal--14-101-100-100-c-70-iso8859-1
URxvt*font: -misc-tamzen-medium-r-normal--14-101-100-100-c-70-iso8859-1, -misc-tamzenforpowerline-medium-r-normal--14-101-100-100-c-70-iso8859-1, -gnu-unifont-medium-r-normal-sans-16-160-75-75-c-80-iso10646-1
URxvt.scrollBar: false
URxvt.internalBorder: 10
URxvt.letterSpace: 1

The URxvt.letterSpace: 1 actually made some of the symbols show up, but the issue with "LN" persists.

sunaku commented 5 years ago

Thanks for the info. Could you post a screenshot of catting the Rakefile? https://github.com/sunaku/tamzen-font/blob/master/Rakefile#L285-L290

$ sed -n '284,291p' Rakefile | ruby -e 'puts eval STDIN.read'
ABCDEFGHIJKLMNOPQRSTUVWXYZ 12345
abcdefghijklmnopqrstuvwxyz 67890
{}[]()<>$*-+=/#_%^@\&|~?'"`!,.;:
Illegal1i = oO0          
The quick brown fox, (..) Hello,
jumps over lazy dog. /__\ World!

For example, here's what I see on my system (running XTerm, not URxvt): gh-20

JuliusSchumacher commented 5 years ago

absolutely!

sunaku commented 5 years ago

Excellent! :ok_hand: Since all the symbols render correctly in the bare terminal (outside Vim), this font is working properly :sweat_smile: and therefore, the root cause of your problem resides within vim-airline itself: I suspect that it may be printing a different Unicode character than the U+E0A1 (the LN symbol) codepoint you see above. :man_shrugging:

JuliusSchumacher commented 5 years ago

Fixed the issue by changing font!