Fonts for InfoExplorer on RS/6000 (was: Re: Font problems on RS/6000 running X11R5)

Fonts for InfoExplorer on RS/6000 (was: Re: Font problems on RS/6000 running X11R5)

Post by Tom McConne » Tue, 04 Feb 1992 07:29:25





> > . . .
> >The InfoExplorer application has its own set of fonts that is supplied by
> >IBM. They are in .snf format. I can put the font directory in the font path,
> >but they don't work. Is there a way to get X11R5 to understand .snf fonts
> > . . .

> I assume that the font directory you are talking about is /usr/lpp/info/X11fonts?
> I find that if this directory is at the end of the font path, things work fine,
> but if it is at the beginning or not there at all, the fonts are messed up.  I have
> no idea why.

> Jeff Eaton
> Intel Corporation



> > . . .
> >The InfoExplorer application has its own set of fonts that is supplied by
> >IBM. They are in .snf format. I can put the font directory in the font path,
> >but they don't work. Is there a way to get X11R5 to understand .snf fonts

> I simply removed the /usr/lpp/info/X11fonts directory. info seems happy with
> supplied X11R5 fonts.

> --
> George Lindholm                                  phone:    (604) 822-4375
> University Computing Services, UBC               fax:      (604) 822-5116



  In Jeff Eaton's reply, he seems to imply that you have control over where the
/usr/lpp/info/X11fonts font path is put. As far as I can tell, when you start
InfoExplorer, either with the script in /usr/bin/info or with the executable,
/usr/lpp/info/bin/info_gr, /usr/lpp/info/X11fonts is _always_ put at the beginning
of the font path. For this reason I think I prefer, in principle, George Lindholm's
idea.

  Unfortunately in my case, I cannot remove /usr/lpp/info/X11fonts because most
people need to run the native IBM X11R3/DPS server. Thus far I have not been able
to prevent InfoExplorer from adding this path, or making InfoExplorer look
somewhere else after starting it, then removing /usr/lpp/info/X11fonts from
the font path.

  So, I have two questions:

  1. Can I stop InfoExplorer from prepending /usr/lpp/info/X11fonts to the font path?

  2. Can I tell InfoExplorer to rehash the font path after it starts?

  Thanks for any help.

    Cheers,

    Tom McConnell
--

 Intel, Corp. C3-21     |     Phone: (602)-554-8229
 5000 W. Chandler Blvd. | The opinions expressed are my own. No one in
 Chandler, AZ  85226    | their right mind would claim them.

 
 
 

Fonts for InfoExplorer on RS/6000 (was: Re: Font problems on RS/6000 running X11R5)

Post by Charles Hann » Tue, 04 Feb 1992 11:10:38



> As far as I can tell, when you start InfoExplorer, [...]
> /usr/lpp/info/X11fonts is _always_ put at the beginning of the font
> path.

> 1. Can I stop InfoExplorer from prepending /usr/lpp/info/X11fonts to
> the font path?

Sure.  Just put this is your .xinitrc or .xsession (or both, whatever
is appropriate).  Or make info_gr a shell script which does this:

  xset fp+ /usr/lpp/info/X11fonts

This will put it at the end of your font path.  Due to weirdness in X,
it will stay there rather than moving to the front.

 
 
 

Fonts for InfoExplorer on RS/6000 (was: Re: Font problems on RS/6000 running X11R5)

Post by Jeff Eat » Tue, 04 Feb 1992 15:57:22



> . . .

>  In Jeff Eaton's reply, he seems to imply that you have control over where the
>/usr/lpp/info/X11fonts font path is put. As far as I can tell, when you start
>InfoExplorer, either with the script in /usr/bin/info or with the executable,
>/usr/lpp/info/bin/info_gr, /usr/lpp/info/X11fonts is _always_ put at the beginning
>of the font path. For this reason I think I prefer, in principle, George Lindholm's
>idea.

>  Unfortunately in my case, I cannot remove /usr/lpp/info/X11fonts because most
>people need to run the native IBM X11R3/DPS server. Thus far I have not been able
>to prevent InfoExplorer from adding this path, or making InfoExplorer look
>somewhere else after starting it, then removing /usr/lpp/info/X11fonts from
>the font path.

>  So, I have two questions:

>  1. Can I stop InfoExplorer from prepending /usr/lpp/info/X11fonts to the font path?

If /usr/lpp/info/X11fonts/ is somewhere in your font path, InfoExplorer
will not prepend it.  You have to anticipate it by doing an:

 xset fp+ /usr/lpp/info/X11fonts/

before ever invoking InfoExplorer.  Or (as I do), if you invoke InfoExplorer
and find you forgot, get out, delete it from the beginning, and append to
the end, and try again... (I don't use info if I can avoid it).

Quote:

>  2. Can I tell InfoExplorer to rehash the font path after it starts?

doubtful.

Quote:> . . .

Jeff Eaton
Intel Corporation

 
 
 

Fonts for InfoExplorer on RS/6000 (was: Re: Font problems on RS/6000 running X11R5)

Post by Jeff Eat » Tue, 04 Feb 1992 16:04:52




>> As far as I can tell, when you start InfoExplorer, [...]
>> /usr/lpp/info/X11fonts is _always_ put at the beginning of the font
>> path.

>> 1. Can I stop InfoExplorer from prepending /usr/lpp/info/X11fonts to
>> the font path?

>Sure.  Just put this is your .xinitrc or .xsession (or both, whatever
>is appropriate).  Or make info_gr a shell script which does this:

>  xset fp+ /usr/lpp/info/X11fonts

>This will put it at the end of your font path.  Due to weirdness in X,
>it will stay there rather than moving to the front.

This, oddly enough, won't work.  InfoExplorer looks to see if
/usr/lpp/info/X11fonts/ is in the font path, and if not, prepends it.
You have to do a:

  xset fp+ /usr/lpp/info/X11fonts/

Jeff Eaton
Intel Corporation

 
 
 

Fonts for InfoExplorer on RS/6000 (was: Re: Font problems on RS/6000 running X11R5)

Post by Adam Stoll » Wed, 05 Feb 1992 07:49:57


Here is a section of our modified /usr/bin/info script to get around the
stupidity built into the font handling of info.

It takes care of appending the info fonts if needed, and in our case
also appends another directory of fonts - which contains the info fonts
converted for use with X.V11R5 - I've commented that out for here.

----------------
[...]
    if ($?DISPLAY ||  $xflag == "on") then
        set OFP=`xset q | egrep -c "/usr/lpp/info/X11fonts/"`
    #    set NFP=`xset q | egrep -c "/usr/local/lib/info/fonts/"`
    #    if (! $NFP) then
            if ($OFP) xset -fp /usr/lpp/info/X11fonts/
            xset fp+ /usr/local/lib/info/fonts/,/usr/lpp/info/X11fonts/
    #    endif
        if ("x$arg" == "x") then
[...]
----------------
it could probably be better - but at least it seems to work.

--fish

 
 
 

1. RS/6000 error msgs (Was: Re: RS/6000 survey - will post summary)

[LANG=En_US]  ksh: kjj: 0403-016 Cannot find or open the file.
[LANG=C]      ksh: kjj: cannot open

[LANG=En_US]  0506-764 ln: /tmp: Cannot use this command with a directory.
[LANG=C]      ln : </tmp> directory

 Canonicalizing all the error msgs by assigning them numbers and more
verbose explanations isn't such a bad idea, but it will hardly make
the system usable by secretaries. It does nothing to prevent an
accidental "rm *" or hide the details of the filesystem from the user.
Secretaries will run Motif and shrink-wrapped applications in
which case they will probably never [want to] use Unix shells. And they
shouldn't need to.
 The big gain here will be made by IBM SEs who will now be able to
look up customers' complaints by the error number.

    I haven't heard about IBM shipping *anything* on a Powerstation
yet. You can buy SunOS 4.1 *today* which is B2 certified.
And AT&T is advertising System V/MLS which is B1
certified -- I don't know if it's shipping yet.
    If security is important to you, you sure don't want to go with
a measly C2 rated system.

      ---Jason
-----

Jason Martin Levitt    P.O. Box 49860  Austin, Texas 78765  (512) 459-0055

UUCP    : cs.utexas.edu!hackbox!jason |  the American spirit and continues to
BIX     : jlevitt                     |  show us the way to follow our dreams."
                                      |             -Ronald Reagan [1990]

2. Solaris 2.6 and Filemanager

3. Vector fonts for IBM GL (AIX 3.1 on RS/6000)

4. Choosing a good video card

5. X11R5 problem building on RS/6000

6. g++ version in 4.6?

7. X11R5/Andrew compilation problems on RS/6000

8. 'mt' for partitioned DAT tapes?

9. Help requested: accessing non-local InfoExplorer manpages (RS/6000)

10. getting SunOS 4.1.1 vi to work on a X11R5 xterm on a RS/6000

11. Re. SPARC to RS/6k Re. SPARC to RS-6000

12. Sorry!! RS/6000 instead RS/2000 ;-)

13. MIT-X11R5 and RS/6000-GT3graphics