Specifying xterm's font in .Xresources. - Xwindows

This is a discussion on Specifying xterm's font in .Xresources. - Xwindows ; Hello, I have the following line in .Xresources: XTerm*font: "-*-andale mono-medium-r-normal-*-*-140-*-*-*-*-*-*" When I start xterm, I get an error message: xterm: unable to open font ""-*-andale mono-medium-r-normal-*-*-140-*-*-*-*-*-*"", trying "fixed".... But when I start xterm with the following command-line option xterm ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: Specifying xterm's font in .Xresources.

  1. Specifying xterm's font in .Xresources.


    Hello,

    I have the following line in .Xresources:

    XTerm*font: "-*-andale mono-medium-r-normal-*-*-140-*-*-*-*-*-*"

    When I start xterm, I get an error message:

    xterm: unable to open font ""-*-andale
    mono-medium-r-normal-*-*-140-*-*-*-*-*-*"",
    trying "fixed"....

    But when I start xterm with the following command-line option

    xterm -fn "-*-andale mono-medium-r-normal-*-*-140-*-*-*-*-*-*"

    the requested font is used, and no error messages are issued, though
    font's name string is the same one.

    Why is that so?


    ddtl.


  2. Re: Specifying xterm's font in .Xresources.

    ddtl wrote:

    > I have the following line in .Xresources:
    > XTerm*font: "-*-andale mono-medium-r-normal-*-*-140-*-*-*-*-*-*"


    don't use quotes in the resource value. Aside from trimming leading
    whitespace and expanding some backslashes, Xt doesn't modify the
    string. Your shell gets rid of double-quotes.

    --
    Thomas E. Dickey
    http://invisible-island.net
    ftp://invisible-island.net

  3. Re: Specifying xterm's font in .Xresources.


    >don't use quotes in the resource value. Aside from trimming leading
    >whitespace and expanding some backslashes, Xt doesn't modify the
    >string. Your shell gets rid of double-quotes.


    Thanks, that solved the problem.

    ddtl.

+ Reply to Thread