You are not logged in.

#1 2011-01-31 12:35:01

svst
Member
Registered: 2011-01-31
Posts: 4

Changing the Xterm font - fonts not found [SOLVED]

Hello, and sorry if this question has been asked a thousand times before.

I've been using Ubuntu for the past few years and settled comfortably into using gnome-terminal, but now I'm thinking of going all Xterm. However, the default Xterm font looks a little too messy for my tastes, and I can't figure out how to change it. I've tried what feels like every possible combination of XTerm*font: [stuff here], but I always get the same error message, the font can't be found. I gather from googling that I should use either xlsfonts or xfontsel to find out what the correct name for the font is, but I'm lost here, as I don't have either of them on my system. However, I did find gfontsel in AUR, but whatever it gives me is still no good for Xterm.

In short, I'm lost as I don't know what's the problem I want to find a solution for, so googling doesn't really help. All I know is Xterm doesn't seem to understand me when I try to tell it which font to use. A step-by-step guide into dealing with these -*-fontnamehere-*-*-*-* things would be nice! By the way, the font I'm trying to use is Proggy Clean.

Last edited by svst (2011-01-31 14:07:38)

Offline

#2 2011-01-31 13:00:31

Watermel0n
Member
Registered: 2010-03-10
Posts: 60

Re: Changing the Xterm font - fonts not found [SOLVED]

you can use xft fonts by specifying faceName. For example I use
XTerm*faceName: Inconsolata

Offline

#3 2011-01-31 13:25:07

svst
Member
Registered: 2011-01-31
Posts: 4

Re: Changing the Xterm font - fonts not found [SOLVED]

Well, that got me a little closer, thanks! I can use *faceName to set the font to Proggy, but I get antialiasing, which I'd rather not use with a bitmap font. Is there any way to tell my font config or some other config file not to use antialiasing with Xterm?

Offline

#4 2011-01-31 13:27:23

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Changing the Xterm font - fonts not found [SOLVED]

-*-fontnamehere-*-*-*-* things are from xfontsel (xorg-xfontsel from [extra]). If you can't see your fonts there, that means its path isn't sourced by default.

Have you set

Xft.antialias:  false

in your .Xdefaults?

Last edited by karol (2011-01-31 13:31:38)

Offline

#5 2011-01-31 14:05:39

svst
Member
Registered: 2011-01-31
Posts: 4

Re: Changing the Xterm font - fonts not found [SOLVED]

Xfontsel did the trick, so this is one solved. Thanks a ton for the help!

Offline

#6 2011-01-31 14:22:24

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Changing the Xterm font - fonts not found [SOLVED]

There's a package called pkgtools which has a handy app called pkgfile. This app will tell you which package has the file you need:

[karol@black ~]$ pkgfile xfontsel
extra/xorg-xfontsel
[karol@black ~]$ pkgfile rc.conf
extra/archboot
core/initscripts

Offline

#7 2011-01-31 16:14:25

svst
Member
Registered: 2011-01-31
Posts: 4

Re: Changing the Xterm font - fonts not found [SOLVED]

Excellent karol, that's just what I needed!

Offline

Board footer

Powered by FluxBB