home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / ultrix / 6498 < prev    next >
Encoding:
Text File  |  1992-08-26  |  1.7 KB  |  41 lines

  1. Newsgroups: comp.unix.ultrix
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!Sirius.dfn.de!ira.uka.de!sun1.ruf.uni-freiburg.de!news.belwue.de!news.uni-stuttgart.de!itwds1!skok
  3. From: skok@itwds1.energietechnik.uni-stuttgart.de (Holger Skok)
  4. Subject: X11 screen fonts, where are they hidden?
  5. Message-ID: <1992Aug26.142718.28529@news.uni-stuttgart.de>
  6. Keywords: programming fonts
  7. Sender: news@news.uni-stuttgart.de (USENET News System)
  8. Organization: Inst. f. Thermodynamik u. Waermetechnik (ITW), U. of Stuttgart, FRG
  9. Date: Wed, 26 Aug 1992 14:27:18 GMT
  10. Lines: 29
  11.  
  12.  
  13. Hi UN*X gurus out there,
  14.  
  15. I'm trying to run a little program I got from the net. It came as
  16. C-source and compiled fine on a DEC-Station 2100 under ULTRIX 4.1 (yeah,
  17. I know that's not the latest version). 
  18. On running it, however, it crashed complaining that it couldn't find a
  19. font. I looked in the source and found the following lines of code:
  20.  
  21.         font = XLoadFont(disp, "10x20\0");      /* If you don't have this
  22.                 font, try replacing it with 9x15\0      */
  23.         XSetFont(disp, gc, font);
  24.  
  25. Consequently, I rooted around in the file system, looking for a font of
  26. that name 10x20 and couldn't find it. I admit being a total novice to
  27. the programming of X-apps and would never think of starting to code my
  28. own. I would like to see that little program run, however. 
  29.  
  30. Is there a quick fix? Can I use one of the fonts I found under
  31. /usr/lib/fonts/decwin/75dpi ?
  32.  
  33. Thanks in advance for any help you might be willing and able to supply,
  34. oh, and by the way: please reply by e-mail.
  35.  
  36. -- 
  37. *************************************************
  38. *    Those stupid, horse-brained masses!     *
  39. *            OPUS on honker surgery  *
  40. *******************************************HSK***
  41.