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.
Re: Specifying xterm's font in .Xresources.
ddtl <this.is@invalid> wrote:
[color=blue]
> I have the following line in .Xresources:
> XTerm*font: "-*-andale mono-medium-r-normal-*-*-140-*-*-*-*-*-*"[/color]
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
[url]http://invisible-island.net[/url]
[url]ftp://invisible-island.net[/url]
Re: Specifying xterm's font in .Xresources.
[color=blue]
>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.[/color]
Thanks, that solved the problem.
ddtl.