2

Fellow people of the internet,

I encounter an issue with Xterm, as it doesn't want to take into account the font i specify. I use xinitrc and Xressources, as followed :

 XTerm*reverseVideo: on xterm*FaceName: "hack" XTerm*FaceSize: 15 

I can change the font size, but not the actual font, either font or FaceName is used. However, i can change it when i launch i new term with xterm -fa "name". I don't get what is wrong, and since i'm quite inexperienced with Xterm, i come here seeking for help.

Thanks !

0

2 Answers 2

2

That's a (mis)feature of fontconfig: if it doesn't find a suitable match, it'll use the default (monospace, etc), without returning an error. It's not a problem with xterm...

You can use xterm's -report-fonts option to see what xterm sees as the fonts that are set. If the characters that you're printing aren't in the font, xterm will fall-back to whatever fontconfig provides.

You might be able to see the problem also using fc-list, e.g., to check the font family-name.

2
  • So is there a difference between using -fa option and setting it into the file , except of course the sustainibility of the config? Is fontconfig overriden of some sort when using -fa ? Commented Mar 17, 2020 at 0:51
  • The -fa option sets the resource, so there's no difference. Commented Mar 17, 2020 at 1:06
1

Don't use quotes in ~/.Xresources:

xterm*FaceName: hack 
  • hack is the name of the installed font, not "hack"

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.