Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xterm -fa works, but not xterm*faceName

Tags:

xterm

I have the font (listed by fc-list):

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

that I am trying to get to display with xterm.

As it stands, running

xterm -fa "Inconsolata\-dz for Powerline"

works just fine, but putting

xterm*faceName: Inconsolata\-dz for Powerline

in my .Xdefaults results in the default, broken weird font you get when an invalid font is loaded.

What is the proper way to set this font using .Xdefaults?

like image 640
Qix - MONICA WAS MISTREATED Avatar asked Oct 25 '14 23:10

Qix - MONICA WAS MISTREATED


1 Answers

Find the font name by run:

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

Configure font in ~/.Xresources

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

Apply changes on .Xresources by run:

xrdb -merge ~/.Xresources
like image 118
Nianliang Avatar answered Oct 02 '22 19:10

Nianliang