LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   XTerm set font to "Courier" (https://www.linuxquestions.org/questions/linux-general-1/xterm-set-font-to-courier-467367/)

introuble 07-25-2006 03:36 AM

XTerm set font to "Courier"
 
I'd like to set the Xterm font to "Courier", is this possible? If not, is there any terminal [except gnome-terminal/konsole] that has this ability?

raskin 07-25-2006 04:11 AM

man xterm. Run xfontsel -print. Select the font. Write down its code (will be printed). First option: type it in xterm (or cat a file with it), select, ctrl-rightclick and choose selection. Second option: command-line option.

introuble 07-25-2006 06:15 AM

I understood, with some difficulty how to use xfontsel. I run an xterm, run xfontsel -print, select the font options in the xfontsel window, click "select", go back to the xterm, ctrl+right click and choose selection. This seems to work. This is what xfontsel prints:

Code:

-*-courier-bold-r-normal--14-*-*-*-*-*-iso8859-
I don't know how I use this.

#2. Command line options. Good .. great.. which ones? I know about the "-fn"/"-font" switches, but I can't figure out the correct argument for "courier"

Code:

$ xterm -font courier
xterm:  unable to open font "courier", trying "fixed"....

A bit more details, if you wish raskin?

raskin 07-25-2006 06:28 AM

The line is what you need - it is font identifier. The line (well, better surround with '') should be passed to -fn; or selected when displayed in xterm with ctrl-rightclick font->selection.

introuble 07-25-2006 06:37 AM

Thanks a lot! I wasn't quoting the font string.


All times are GMT -5. The time now is 06:05 PM.