setting xterm font from the command line

Warren Block wblock at wonkity.com
Wed Jun 23 21:20:17 PDT 2004


On Wed, 23 Jun 2004, Michael A. Smith wrote:

> I'm trying to set the xterm font from the command line using the -fn option.
>
> $ xterm -fn fontname
>
> What I can't seem to find is the exact fontname of any font on my system 
> (FreeBSD 5.2.1R). I've tried many combinations of my fonts: lowercase mixed 
> case, spaces, hyphes, underscores, etc... and it can never find the font. For 
> example:
>
> $ xterm -fn Bitstream-Vera-Sans-Mono
> xterm:  unable to open font "Bitstream-Vera-Sans-Mono", trying "fixed"
>
> Where can I find the font list that xterm is checking?

Use xfontsel to choose the font and then specify the exact same thing 
that it shows:

xterm -fn '-bitstream-charter-*-r-normal-*-*-*-*-*-*-*-*-*'

-Warren Block * Rapid City, South Dakota USA


More information about the freebsd-questions mailing list