SUMMARY: Cannot load font under OW

From: Jozef Rujak (dodi@intas.sk)
Date: Fri Jun 14 1996 - 02:06:29 CDT


Hi Suners,

It is great how it works.

I wrote:
>How can I change fonts for aplication under OpenWindows (Solaris 2.5).
>I always did it this way for exapmple:
>
>%cmdtool -fn b&h-lucidatypewriter-bold-r-normal-sans-12-120-75-75-m-70-iso8859-2
>
>But for some reason it doesn't work now.
>
>The result is:
>
>sun5% cmdtool -fn b&h-lucidatypewriter-bold-r-normal-sans-12-120-75-75-m-70-iso8859-2
>[1] 348
>h-lucidatypewriter-bold-r-normal-sans-12-120-75-75-m-70-iso8859-2: Command not found
>sun5% XView warning: Cannot load font set 'b' (Font package)
>XView warning: Cannot load font set 'b' (Font package)
>XView warning: Cannot load font set 'b' (Font package)
>XView warning: Cannot load font set 'b' (Font package)
>XView warning: Cannot load font set 'b' (Font package)
>XView warning: Cannot load font set 'b' (Font package)
>
>Comandtool runs with defult font.
>The font after -fn is OK. It appears after command xlsfonts.
>I tried several fonts. The same result.
>
>Can you tell me what do I do wrong?

The solution is (thanks to you):

sun5% cmdtool -fn '-b&h-lucidatypewriter-bold-r-normal-sans-12-120-75-75-m-70-iso8859-2'

OR

sun5% cmdtool -fn -b\&h-lucidatypewriter-bold-r-normal-sans-12-120-75-75-m-70-iso8859-2

OR

cmdtool -fn "b&h-lucidatypewriter-bold-r-normal-sans-12-120-75-75-m-70-iso8859-2"

All works fine.

It is because of that :
    The "&" character has special meaning to the shell. It means "run
    this command in the background." Reading the error message shows
    that the shell thinks that the font is "b" and
    h-lucidatypewriter-bold-r-normal-sans-12-120-75-75-m-70-iso8859-2
    is another command.

Special Thanks to:

Paul R. Joslin (paul.joslin@heimdall.sdrc.com)
Casper Dik <casper@holland.Sun.COM>
Jens Fischer <jefi@kat.ina.de>
Mitch Patenaude <mrp@northcoast.com>
Anthony Worrall <Anthony.Worrall@reading.ac.uk>
Terry Gorby <tgorby@emc.com>
Danny Johnson (djohnson@nbserv2.dseg.ti.com )
David H. Brierley <dhb@ssd.ray.com>
bern@penthesilea.uni-trier.de (Jochen Bern)
wen@avatar.pty.com (Wen Fung)
Trevor Paquette <TrevorPaquette@aec.ca>

and many others.

Best Regards

Jozef Rujak

--------------------------------------------------------------------
Jozef Rujak e-mail: dodi@intas.sk
INTAS phone: +42 95 6335013, 35012
Stromova 10 fax: +42 95 6335013, 35012
040 01 Kosice http://www.tuke.sk/com/intas/intas-a.html
Slovak Republic
--------------------------------------------------------------------



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:01 CDT