Ubuntu – How does one get the ttf-dejavu fonts to show up in xlsfonts for use in rxvt


I installed the ttf-dejavu package and can use the fonts in gnome-terminal. However, I want to use them in rxvt, but they do not show up with xlsfonts and rxvt reports "can't load font" when I try to use "DejaVu Sans Mono" in .Xdefaults. I found this confirmed bug (#574409), but there is no workaround.

Best Answer

This is a workaround more than a literal solution to the question. I switch to urxvt (i.e. rxvt-unicode) and the following .Xdefaults lines work just fine. A similar configuration for regular rxvt could not locate the same font.

URxvt.font: xft:DejaVu Sans Mono:antialias=true:pixelsize=14
URxvt.boldFont: xft:DejaVu Sans Mono:style=bold:antialias=true:pixelsize=14