home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / windows / openloo / 4410 < prev    next >
Encoding:
Internet Message Format  |  1992-11-08  |  3.5 KB

  1. Xref: sparky comp.windows.open-look:4410 comp.windows.x:18849 comp.sys.sun.apps:2406
  2. Newsgroups: comp.windows.open-look,comp.windows.x,comp.sys.sun.apps
  3. Path: sparky!uunet!paladin.american.edu!darwin.sura.net!spool.mu.edu!umn.edu!umeecs!nova!ellis
  4. From: ellis@nova.gmi.edu (Stew Ellis)
  5. Subject: Font problems with OW3 trying to display on Intel 386 with X11R3
  6. Message-ID: <ellis.721149604@nova>
  7. Keywords: fonts.alias, bdftosnf, mkfontdir
  8. Sender: news@zip.eecs.umich.edu (Mr. News)
  9. Organization: GMI Engineering&Management Institute, Flint, MI
  10. Date: Sat, 7 Nov 1992 15:20:04 GMT
  11. Lines: 53
  12.  
  13. I am trying to run cm on a Sun and display it to a 386 running Intel
  14. SYSVR4.0.3, running the Intel version of OL2 based on X11R3.  CM does not
  15. recognize the xview fonts on the 386 because the fonts.dir lists their names
  16. in the old runtogether style.  I have read about aliasing fonts in the OL
  17. and XWIN docs that I got with the Intel UNIX (pre release versions of the
  18. Prentice-Hall books).  I have also read the man pages for mkfontdir, xset,
  19. bdftosnf several times.  Initial attempts reported something about unable to
  20. load font -b&h-lucida-etc.  Because I could not figure out the aliasing
  21. syntax, I simply tried to port the Sun xview fonts from
  22. $OPENWINHOME/share/src/fonts (??), or wherever I found the bdf sources after
  23. someone on the net pointed them out to me.
  24.   After reading the mkfontdir manpage, I had the impression I should be able
  25. to generate a fonts.dir directly from the bdf sources.  When that did not
  26. work on either machine (yes I have root on both), I decided to move the bdf
  27. src from a mounted directory to a local directory on the 386 and compile
  28. them.  I initially just did the 100dpi and 75dpi fonts, which went
  29. smoothly.  I was able to generate fonts.dir and although xset fp rehash did
  30. not rehash my fonts, killing the X server and restarting it and running
  31. xlsfonts showed me that the b&h fonts were now recognized.  The next attempt
  32. to run cm found those fonts, but could not find the olcursor and olglyph
  33. fonts, so I tried to compile them on the 386 as well.  Although the glyph
  34. fonts compiled alright, the olcursor font gave errors and refused to
  35. compile, either on the 386 or the Sun.
  36.   I got the following error message:
  37.    odd number of characters in hex encoding at line 896
  38. I added a line of 00000000 at the end of the font bitmap and recompiled.  I
  39. had to keep doing this several times until I got an SWIDTH error about line
  40. 3770, which I could not kludge around.
  41.  
  42. So I went back to trying to alias my way around it.  I simply have not been
  43. able to figure out how to alias a font name of the sort
  44.  '-sun-open look cursor-----*-*-*-*-*-*-sunolcursor-1' to the existing
  45. olcursor.snf which ends up with the line 
  46.  olcursor.snf    olcursor
  47. in the fonts.dir file when I run mkfontdir. 
  48. Attempts to put a line of the sort
  49.  '-sun-open look cursor---*'    olcursor
  50. in the fonts.alias file cause my server to return an error message if I run
  51. xset fp rehash, and to crash the server if I try to restart it.
  52.  
  53. What I would like:
  54.   1) An explanation of how to do this kind of font aliasing
  55. -and-
  56.   2) A good copy of the sunolcursor bdf source to compare against the bad
  57. one I have.  (Context diffs would be acceptable)
  58.  
  59. Thank you very much.
  60.  
  61. --
  62. --                                                        ___________________
  63.   R.Stewart(Stew) Ellis, Assoc.Prof., (Off)313-762-9765  /   _____  ______ 
  64.   Humanities & Social Science,  GMI Eng.& Mgmt. Inst.   /        / /  /  / /
  65.   Flint, MI 48504      ellis@nova.gmi.edu              /________/ /  /  / /
  66.