home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / ultrix / 8994 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  6.0 KB

  1. Xref: sparky comp.unix.ultrix:8994 comp.windows.x.apps:1718
  2. Newsgroups: comp.unix.ultrix,comp.windows.x.apps
  3. Path: sparky!uunet!europa.asd.contel.com!howland.reston.ans.net!usc!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!geraldo.cc.utexas.edu!slcs.slb.com!aa.cad.slb.com!bl.cad.slb.com!coach!shibuya
  4. From: shibuya@bl.applicon.slb.com (Hiroto Shibuya)
  5. Subject: [Summary] Running Xview application on DECstation
  6. Message-ID: <SHIBUYA.92Dec20165724@chute.bl.applicon.slb.com>
  7. Sender: usenet@mailhost.bl.cad.slb.com (USENET Administrator)
  8. Reply-To: shibuya@bl.applicon.slb.com
  9. Organization: Applicon; Billerica, MA (USA)
  10. Distribution: comp
  11. Date: Sun, 20 Dec 1992 21:57:24 GMT
  12. Lines: 143
  13.  
  14. Hiroto Shibuya writes:
  15.  
  16.  > I obtained xview3-ultrix.4.2-mips.tar.Z from
  17.  > gatekeeper.dec.com:/pub/DEC, and built XVTDL 3.1 against it.  To my
  18.  > surprise, it built without single error nor warning at the first shot.
  19.  > But unfortunately when I run it, I get the following errors.
  20.  > 
  21.  >     XView warning: Cannot load font \
  22.  >         '-b&h-lucida-medium-r-*-*-*-120-*-*-*-*-*-*' \
  23.  >         (Font package)
  24.  >     XView warning: Cannot load font \
  25.  >         '-b&h-lucida-medium-r-normal-sans-*-120-*-*-*-*-*-*' \
  26.  >         (Font package)
  27.  >     XView error: Cannot open connection to \
  28.  >         window server: :0.0 (Server package)
  29.  > 
  30.  > Usually it is tribial to fix "Cannot load font" with X application but
  31.  > it seems to be somewhere deep down in Xview, and since xview3-ultrix
  32.  > doesn't come with any source nor documentation, I don't have a clue.
  33.  > Before I start getting xview source distribution and start digging
  34.  > into it, I like to know if anybody have Xvtdl working with this
  35.  > configuration, and give me quick workaround for it. 
  36.  > 
  37.  > My DECstation is running Ultrix 4.2A and all X stuff is out from
  38.  > Ultrix.  Do I need R5?  I'm running mwm for window manager, if that
  39.  > matters.  Do I have to run "olwm"?
  40.  > 
  41.  > Please e-mail me your reply.  Thank you.
  42.  > 
  43.  
  44. All I needed for this problem were fonts which Xview specifically asks
  45. for but do not come with DECwindows.
  46.  
  47. I got a couple of alternatives.
  48.  
  49. 1) Obtain xviewfonts-dec-pcf.tar.Z
  50.  
  51. There are Xview fonts in DEC PCF format available for FTP.  A couple
  52. of alternative places to get it.
  53.  
  54.     export.lcs.mit.edu:/contrib/        [18.24.0.12]
  55.     gatekeeper.dec.com:/pub/X11/contrib/    [16.1.0.2]
  56.  
  57. Now this was the first time I had to install fonts, and took me a
  58. little while to figure out so I describe it here.
  59.  
  60. Unpackage the font into a directory, say,
  61. "/usr/myhome/xview_font".  This package contain following directories.
  62.  
  63.     ./pcf/75dpi
  64.     ./pcf/misc
  65.  
  66. Add these directories to the font path using "xset" command.
  67.  
  68. % xset fp+ /usr/myhome/xview_font/pcf/75dpi/,/usr/myhome/xview_font/pcf/misc/
  69. % xset fp rehash
  70.  
  71. Do "xset -q" to verify that your directoreis are in the font path.
  72. Also do "xlsfonts" to very the new fonts are installed.  You will find
  73. 70 or so new fonts starting with "-b&h-".
  74.  
  75. -b&h-lucida-bold-i-normal-sans-10-100-75-75-p-67-iso8859-1
  76. -b&h-lucida-bold-i-normal-sans-12-120-75-75-p-79-iso8859-1
  77. -b&h-lucida-bold-i-normal-sans-14-140-75-75-p-92-iso8859-1
  78. -b&h-lucida-bold-i-normal-sans-18-180-75-75-p-119-iso8859-1
  79. -b&h-lucida-bold-i-normal-sans-19-190-75-75-p-122-iso8859-1
  80. -b&h-lucida-bold-i-normal-sans-24-240-75-75-p-151-iso8859-1
  81. -b&h-lucida-bold-i-normal-sans-8-80-75-75-p-49-iso8859-1
  82. -b&h-lucida-bold-r-normal-sans-10-100-75-75-p-66-iso8859-1
  83. -b&h-lucida-bold-r-normal-sans-12-120-75-75-p-79-iso8859-1
  84. -b&h-lucida-bold-r-normal-sans-14-140-75-75-p-92-iso8859-1
  85.  
  86.     [...]
  87.  
  88. Now you are all set to start Xview application on your DECstation.
  89.  
  90. Now the second alternative.
  91.  
  92. 2a) Define aliases for existing fonts
  93.  
  94. Poorman's alternative is to define aliases for these "-b&h-" fonts.  
  95.  
  96. If you have priviledge to write into /usr/lib/X11/fonts/decwin/75dpi,
  97. add the following lines to the file "fonts.alias" in that directory.
  98.  
  99. -b&h-lucida-medium-r-normal--12-120-75-75-p-64-iso8859-1 \
  100. -adobe-times-medium-r-normal--12-120-75-75-p-64-iso8859-1
  101. -b&h-lucida-bold-i-normal--14-140-75-75-p-77-iso8859-1 \
  102. -adobe-times-bold-i-normal--14-140-75-75-p-77-iso8859-1
  103. -b&h-lucida-bold-r-normal--12-120-75-75-p-67-iso8859-1 \
  104. -adobe-times-bold-r-normal--12-120-75-75-p-67-iso8859-1
  105. -b&h-lucida-medium-r-normal-sans-12-120-75-75-p-67-iso8859-1 \
  106. -adobe-helvetica-medium-r-normal--12-120-75-75-p-67-iso8859-1
  107. -b&h-lucidatypewriter-medium-r-normal--12-120-75-75-m-70-iso8859-1 \
  108. -adobe-courier-medium-r-normal--12-120-75-75-m-70-iso8859-1
  109. -b&h-lucida-bold-i-normal--14-140-75-75-p-77-iso8859-1 \
  110. -adobe-times-bold-i-normal--14-140-75-75-p-77-iso8859-1
  111.  
  112. It is kind of long lines so I folded with \.  Please remove the
  113. backslash and connect the adjacent two lines into one.
  114.  
  115. This is not the complete list of b&h fonts, but this was minimum fonts
  116. necessary to run XVTDL.  You might have to add more fonts for running
  117. other Xview application.  Fonts here might not be the best
  118. alternatives, but it looks usable to me. Now to update these aliases
  119. into X server, do "xset fp rehash" and do "xlsfonts" to verify the
  120. result.
  121.  
  122. BTW, there is "DECwindows_on_X11R4_font.aliases" file in /contrib
  123. which make DECwindows application runnable on server with vanila MIT
  124. fonts.  I can imagine there is demand for
  125. "Xview_on_DECwindows_font.aliases".  (Why DECwindows always need
  126. special treatment :-)
  127.  
  128. 2b) If you do not have previledge to mess with system disk 
  129.  
  130. Create a directory, say "/usr/myhome/xview_font"
  131.  
  132. Make symbolic links to the files you want to make aliases for.
  133. Following is the minimum list I needed for XVTDL.
  134.  
  135. ln -s /usr/lib/X11/fonts/decwin/75dpi/times_roman12.pcf
  136. ln -s /usr/lib/X11/fonts/decwin/75dpi/times_bolditalic14.pcf
  137. ln -s /usr/lib/X11/fonts/decwin/75dpi/times_bold12.pcf
  138. ln -s /usr/lib/X11/fonts/decwin/75dpi/helvetica12.pcf
  139. ln -s /usr/lib/X11/fonts/decwin/75dpi/courier12.pcf
  140. ln -s /usr/lib/X11/fonts/decwin/75dpi/times_bolditalic14.pcf
  141.  
  142. Run "mkfontdir" to make fonts.dir file.
  143.  
  144. Create file fonts.alias with the contents mentioned above.
  145.  
  146. Add and rehash the fonts path as described in 1).
  147.  
  148. ---
  149. Hope this helps a few people.
  150.  
  151.                     Hiroto Shibuya
  152.             
  153.                     Applicon Inc.
  154.                     Billerica, MA
  155.                     U.S.A.
  156.  
  157.