Xterm -fa works, but not xterm * faceName

I have a font (specified by fc-list ):

 /usr/share/fonts/misc/Inconsolata-dz for Powerline.otf: Inconsolata\-dz for Powerline:style=dz 

which I am trying to show using xterm.

As it is, run

 xterm -fa "Inconsolata\-dz for Powerline" 

works just fine but

 xterm*faceName: Inconsolata\-dz for Powerline 

in my .Xdefaults results in a default, broken weird font that you get when you load an invalid font.

What is the correct way to install this font using .Xdefaults ?

+7
xterm
source share
3 answers

"\ -" looks suspicious: X resources know only a few special backslash sequences. Perhaps the backslash was simply removed.

0
source share

Find the font name using run:

 fc-list :fontformat=TrueType -f "%{family}\n" |grep Powerline 

Customize the font in ~ / .Xresources

 XTerm*faceName: <font name from previous output> XTerm*faceSize: 12 

Apply changes to .Xresources by running:

 xrdb -merge ~/.Xresources 
0
source share

Here is another thread with the same question

From the response to this thread, it turns out that you can use faceName in this way, however, you have to be very careful to get the capitalization correct, as labels are case sensitive. For example, the following .Xresources file .Xresources correctly for me on Arch Linux, assuming it remembers its xrdb .

 XTerm*renderFont: true XTerm*faceName: monospace XTerm*faceSize: 15 
0
source share

All Articles