home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / windows / x / apps / 1518 < prev    next >
Encoding:
Text File  |  1992-11-19  |  2.1 KB  |  80 lines

  1. Newsgroups: comp.windows.x.apps
  2. Path: sparky!uunet!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!darwin.sura.net!udel!louie!krusty.ee.udel.edu!sflynn
  3. From: sflynn@krusty.ee.udel.edu (Steven J Flynn)
  4. Subject: Re: x3270
  5. Message-ID: <1992Nov19.145115.28257@udel.edu>
  6. Sender: usenet@udel.edu (USENET News Service)
  7. Nntp-Posting-Host: krusty.ee.udel.edu
  8. Organization: University of Delaware, Newark
  9. References: <1992Nov15.111238.15598@newstand.syr.edu>
  10. Distribution: usa
  11. Date: Thu, 19 Nov 1992 14:51:15 GMT
  12. Lines: 66
  13.  
  14. In article <1992Nov15.111238.15598@newstand.syr.edu> svdhara@mongoose.syr.EDU () writes:
  15. >
  16. >
  17. >  We work on Sun O.S. 4.1.2 X11 R4 Openwin.v3. 
  18. >When we try to run x3270 on this environment,the following 
  19. >error message comes: 
  20. >Warning: Cannot convert string "3270" to type FontStruct 
  21. >In addition,the screen is garbled. 
  22. >I have checked the font.dir and it is in the font path. 
  23. >I also tried to include the fonts in the current directory and add the 
  24. >current directory to the font path with: 
  25. >xset +fp [path]  
  26. >xset fp rehash 
  27. >But still ,the error message persists. 
  28. >
  29. >In the Makefile,TOP=. (TOP is defined as current dir.).Is this affecting
  30. >the execution of x3270?
  31. >
  32. >If you can go through my Makefile and suggest a solution,please let me know.
  33. >I will immediately mail it you.
  34. >  
  35.  
  36. I had the same problem.  The problem is in you font definition and how
  37. you put it in the font files.  The font definition is:
  38.  
  39.  -Misc-3270-Medium-R-Normal--14-140-75-75-C-90--1
  40.  
  41. (from the 3270.bdf file)
  42.  
  43. In you Imakefile make sure:
  44.  
  45. FONTINSTDIR = $(FONTDIR)/misc
  46.  
  47. In the /misc directory the entry for font.alias is:
  48.  
  49. 3270          -misc-3270-medium-r-normal--14-140-75-75-c-90--1
  50.  
  51. An in /misc  directory the entry for fonts.dir is:
  52.  
  53. 3270.pcf -misc-3270-medium-r-normal--14-140-75-75-c-90--1
  54.  
  55. (make sure you add one to the font counter at the top of the file)
  56.  
  57.  
  58. do xmkmf
  59.    make Makefiles
  60.    make
  61.  
  62.    xset fp rehash
  63.  
  64.    and you should be set to go!!!!  (it took me a while since I'm an
  65.    x-novice!)
  66.  
  67.    If you want to put the font in its own directory, xset +fp [Path]
  68.    will work.
  69.  
  70.  
  71. GOOD LUCK!!
  72.  
  73. Steve Flynn
  74. University of Delaware
  75.