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