home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / linux / 10347 < prev    next >
Encoding:
Text File  |  1992-09-09  |  1.7 KB  |  40 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!van-bc!stewart
  3. From: stewart@wimsey.bc.ca (Jim Stewart)
  4. Subject: Re: X11: What is "Cannot convert string..."
  5. Organization: Wimsey 
  6. Date: Thu, 10 Sep 1992 06:07:49 GMT
  7. Message-ID: <BuCMD2.AGt@wimsey.bc.ca>
  8. References: <18m5bnINNkad@usenet.INS.CWRU.Edu>
  9. Lines: 29
  10.  
  11. In article <18m5bnINNkad@usenet.INS.CWRU.Edu> mdr4@po.CWRU.Edu (Mark D. Rutherford) writes:
  12. >
  13. >A few of my X11 apps when executed, periodically give me this error:
  14. >
  15. >' Cannot convert string "...." to type FontStruct'
  16. >
  17. >What does this mean, and how can I fix it?
  18. >
  19. It means that the X server cannot find a font that is close enough to
  20. the one described by "..." to use for you.  The fix depends on the application.
  21. Do you have the 75dpi fonts installed? ... the application wouldn't perhaps
  22. be xmahjongg would it? :-) ...
  23.  
  24. Generaly, this kind of problem comes from applications that try to
  25. overspecify the values of their resources.  Good Xt Style suggests that
  26. things like font names and colors be specified in application or user
  27. defaults files (i.e. in app-defaults/ or in ~/.Xdefaults).  Applications
  28. that ignore or override the customization mechanism usually do so for a
  29. reason ... for example, xmahjongg loads it's playing tile images from
  30. a custom "font" which must be installed.
  31.  
  32. If your application came with a file whose name ends in .bdf (binary 
  33. distribution format) you can compile the font with /usr/bin/X11/bdftopcf.
  34. Then place the .pcf font in a directory that is included in your fontpath
  35. (as specified in Xconfig), and run /usr/bin/X11/mkfontdir in that directory.
  36. mkfontdir updates the font database file to X.  The simple thing to do then
  37. is to restart the X server ... and all should be well :-)
  38.  
  39. js
  40.