SGI Font Server Problem (solved)

SGI Font Server Problem (solved)

Post by Markus Fle » Wed, 10 Jan 1996 04:00:00



                      [I think this should be included in the SGI Admin FAQ]

We were having an annoying problem with some SGI machines (mostly "Indy"
models with Sony-made monitors): a number of X11 applications (e.g. Tcl/Tk)
that looked alright on other platforms were displayed using far too big
fonts - even when started remotely on another (non-SGI) host. This rendered
these applications almost unusable on the SGI hosts. It turned out that the
SGI X server was using the 100 DPI fonts instead of the 75 DPI fonts.

For some reason, SGI incorporated some (would-be) heuristics in their
server that tries to calculate the screen resolution at run-time:

/usr/lib/X11/config/sgi.cf:

-- CUT/BEGIN ---

Quote:> /*
>  * XXX MIT specifies misc,Speedo,Type1,NNNdpi,NNNdpi but SGI wants
>  * NNNdpi,NNNdpi,misc,Type1,Speedo because of the way the "fixed" font
>  * is in NNNdpi instead of being pulled from misc.  Also note that Xsgi
>  * reorders 100dpi and 75dpi automatically at run-time to best fit
>  * the resolution of the actual screen since it varies across monitors
>  * and graphics boards.
>  */
> #ifndef DefaultFontPath
> #if PrimaryScreenResolution < 88                /* (75 + 100) / 2 */
> #define DefaultFontPath $(FONTDIR)/75dpi/,$(FONTDIR)/100dpi/,$(FONTDIR)/misc/,
$(
> FONTDIR)/Type1/,$(FONTDIR)/Speedo/
> #else
> #define DefaultFontPath $(FONTDIR)/100dpi/,$(FONTDIR)/75dpi/,$(FONTDIR)/misc/,
$(
> FONTDIR)/Type1/,$(FONTDIR)/Speedo/
> #endif
> #endif

--- CUT/END ---

They were so confident with this that they even disabled the "-dpi"
option of the X11 server (Xsgi) [cf. "bugs" section in Xsgi manual page].

If you are using xdm, you can use the following workaround: in
/usr/lib/X11/xdm/Xservers, include the "-fp" (font path) parameter
in the server startup commandline:

--- CUT/BEGIN (one line) ---
:0 secure /usr/bin/X11/X -fp /usr/lib/X11/fonts/75dpi/,/usr/lib/X11/fonts/100dpi
/,/usr/lib/X11/fonts/misc/,/usr/lib/X11/fonts/Type1/,/usr/lib/X11/fonts/Speedo/
-auth .Xauthority -bs -nobitscale -c -pseudomap 4sight -shmnumclients 0 -solidro
ot sgilightblue -cursorFG red -cursorBG white
--- CUT/END ---

Also note the "-shnumclients 0" option that works around an Xsgi security
bug (cf. Xsgi manual page - it's even documented!).

You'll have to send the parent xdm a SIGHUP signal (kill -HUP <xdm-pid>) to
make xdm reread the Xservers file and use the new settings the next time you
log in.

Enjoy! ;->

Yours truly,
Markus.

Markus B Fleck - CS Student - University of Bonn, Germany - UNIX Support
--
I'm a member of Amnesty International - How about you?

 
 
 

SGI Font Server Problem (solved)

Post by Arthur Hag » Mon, 15 Jan 1996 04:00:00



>                       [I think this should be included in the SGI Admin FAQ]
[chop]
> If you are using xdm, you can use the following workaround: in
> /usr/lib/X11/xdm/Xservers, include the "-fp" (font path) parameter
> in the server startup commandline:

> --- CUT/BEGIN (one line) ---
> :0 secure /usr/bin/X11/X -fp /usr/lib/X11/fonts/75dpi/,/usr/lib/X11/fonts/100dpi
> /,/usr/lib/X11/fonts/misc/,/usr/lib/X11/fonts/Type1/,/usr/lib/X11/fonts/Speedo/
> -auth .Xauthority -bs -nobitscale -c -pseudomap 4sight -shmnumclients 0 -solidro
> ot sgilightblue -cursorFG red -cursorBG white
> --- CUT/END ---
> Enjoy! ;->

No, I hope this won't ever get into the FAQ's.  Have you tried using a program
like Netscape after applying your "workaround"?  It starts using scalable fonts
in miniature sizes, and most things get unreadable.  Sure, you can select
"large" fontsize in Netscape - but then <H1> becomes HUGE and pages designed to
have the text fit won't fit at all. Not to mention that the standard window
size for Netscape (versions 1.12IS and 2.0b5) becomes a lot smaller after your
workaround - too small to show http://www.sgi.com/ unless you resize.
And with Iris Insight, you also get quite unreadable text.

--

SysAdmin, Interactive Design     / http://www.design.idg.no/
Disclaimer:  All expressed views are my own.
My company better accept and support them.

 
 
 

1. Some hard-to-find font problems solved - but still some font ID missing

Following this URL
http://www.sjoki.uta.fi/~latvis/fonts/

you can find some hard-to-find font problems solved but still some questions.
Thanks to anybody who has helped me and please help me to ID
those mysterious fonts (now one more). And tell me that "Gill Sans" Photoshop
trick

BTW. All font catalogues are wellcome

Jarmo Latva-Aijo
editor/ Rockdata
Kauppakatu 19 A 4
FIN-60100 Seinajoki

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
ROCKDATA - GLOBAL UNIT MUSIC INFORMATION SERVICE
http://www.sjoki.uta.fi/~latvis/rockdata.html
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-

2. Looking for a cartoon

3. X Font Server with NCD X-terminals on SGI

4. animating glow

5. Problem solved w Metafile fonts!

6. Elsa Gloria Synergy Video I/O

7. GLX & X server resources problem on SGI

8. [= SGI O2 X/Font problem - Need Help! =]

9. Font Problem: SGI Open Inventor on Solaris: SoText2 text is cut

10. need to solve segmentation faults with oss.sgi 2.1.5-7

11. SGI Linux QuickTime Streaming Servers - JunoMoneta.com

12. SGI Indigo2 vs. PII 200 NT server