Re: FVWM: fvwm-2.0.46, truecolor and netscape 4.04us

From: Michael Hucka <hucka_at_eecs.umich.edu>
Date: Mon, 2 Mar 1998 05:23:36 -0500 (EST)

>>>>> On 02 Mar 1998, Mattias.Borell_at_LUB.lu.se wrote:

  MB> This sounds more like the X-font bug included in Solaris2.6, which
  MB> Netscape happily triggers. Try changing your font in Netscape into one
  MB> of the linotypes (type 1 fonts are the problem).

That's one option; another option is to try the workaround explained below,
posted on comp.sys.sun.admin. (There are 2 messages explaining different
ways of implementing the same workaround.) Caveat: I haven't tried this
myself (yet).

> ============================================================================
> From: Juergen Keil <jk_at_leo.tools.de>
> Newsgroups: comp.sys.sun.admin,comp.unix.solaris
> Message-ID: <wyoh0z9rhx.fsf_at_leo.tools.de>
> Subject: Re: Solaris 2.6 and Fonts in Communicator4.x
> Date: 26 Jan 1998 16:36:42 +0100
>
> Bernie Harris <bernieh_at_erols.com> writes:
>
> > From Known Issues In This Release/General and Setup, Netscape Communicator
> > 4.0 Unix Release Notes:
> >
> > Solaris 2.6 only: Solaris 2.6/Communicator 4.0x does not render fonts
> > properly. To fix the problem, add the following line to your ~/.xinitrc
> > file:
> > xset +fp /usr/openwin/lib/X11/fonts/75dpi/
> > xset fp rehash
> >
> > If you are using CDE, I believe that the xset commands should go in
> > ~/.dt/sessions/sessionetc instead of ~/.xinitrc.
>
> A better workaround is to add the following 'xlsfonts' command
> in your ~/.dt/sessions/sessionetc (or ~/.xinitrc)
>
> xlsfonts -o utopia-regular
>
>
> The Solaris 2.6 Type1 font rendering problem is triggered when the
> type1 font rasterizer gets initialized because of an XListFonts call.
>
> The rasterizer gets correctly initialized due to XLoadFont requests,
> so explicitly *loading* any type1 font (like 'utopia-regular' or
> '-adobe-utopia-medium-r-normal--0-0-0-0-p-0-iso8859-1' above) early in
> the X session avoids the bug.
>
>
> Btw., the bug can be triggered with the following simple program. If
> this is the first client that touches type1 fonts, the type1 font
> rasterizer is hosed (any type1 fonts come up blank afterwards) until
> the X server is reset.
>
>
> #include <stdio.h>
> #include <X11/Xlib.h>
>
>
> int main(int argc, char **argv) {
> Display *dpy;
> int max_fonts;
>
> dpy = XOpenDisplay(argv[1] ? argv[1] : ":0");
> if (dpy == NULL) {
> fprintf(stderr, "Can't open display\n");
> exit(1);
> }
> XListFonts(dpy, "*", 32767, &max_fonts);
> }
>
>
> ============================================================================
> From: Juergen Keil <jk_at_tools.de>
> Newsgroups: comp.sys.sun.admin,comp.unix.solaris
> Message-ID: <wyoh0jb9xu.fsf_at_leo.tools.de>
> Subject: Re: Solaris 2.6 and Fonts in Communicator4.x
> Date: 07 Feb 1998 18:29:17 +0100
>
> James Dehnert <jdehnert_at_fiberlane.com> writes:
>
> > Anthony Talltree wrote:
> > >
> > > >The system wide solutions is to put the xlsfonts call into either
> > > >/usr/dt/config/sessionetc
> > > >or
> > > >/etc/dt/config/sessionetc
> > >
> > > The former has never been read on my machine; the latter doesn't
> > > exist, so it looks to me as though this is a DTE-only kinda deal,
> > > and thus isn't really system-wide.
> >
> > Opps. I missed the begining of this thread.
> >
> > Was there a syntax to the addition of xlsfonts to the sessionetc
> > file?
>
> To work around the problem with netscape v4.x (and a few other
> applications) sometimes not showing certain type1 fonts under
> solaris 2.6, install the following executable shell script as
> /etc/dt/config/sessionetc:
>
> #!/bin/sh
> xlsfonts -o utopia-regular
>
> and insert the same xlsfonts command just before the final exit 0
> in /usr/openwin/lib/openwin-sys:
>
> ...
> if [ -x $OPENWINHOME/bin/speckeysd ] ; then
> $OPENWINHOME/bin/speckeysd 1> /dev/console 2>&1
> fi
>
> xlsfonts -o utopia-regular # added command
>
> exit 0
>
> [ The /etc/dt/config/sessionetc file fixes the type1 font problem for
> CDE desktop users, the modification of openwin-sys fixes it for
> openlook users ]
>
> ============================================================================

-- 
Mike Hucka   --   hucka_at_umich.edu   --   PhD student, UNIX admin & programmer
  Read about how Microsoft really achieved its position of dominance in
  software and then think about what it means for you if they are allowed 
  to monopolize the industry: http://www.netaction.org/msoft/world/
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Mon Mar 02 1998 - 04:24:04 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:01 BST