Re: Linux Font Warning [message #45705 is a reply to message #45704] |
Fri, 30 September 2005 10:34  |
Karl Schultz
Messages: 341 Registered: October 1999
|
Senior Member |
|
|
On Fri, 30 Sep 2005 11:13:46 -0500, Michael Wallace wrote:
> This isn't a big deal, but sometimes when I run IDL commands that bring
> up a GUI, I get a warning about the fonts used. I just got this when I
> ran ascii_template().
>
> Warning: Cannot convert string "courier*12" to type FontStruct
>
>
> I've seen this thing happen before and it doesn't concern me at all, but
> just wondering why I see it. It's curiosity more than anything else.
>
That's coming from an X toolkit, most likely Xt. You've got a resource
set someplace that is referencing this font and that font isn't available
or there is some other problem with it.
You can issue:
xrdb -query
to see what resources are in your resource database. Chances are this
font name is used to set one of the resources. The resource name would be
a big clue. But in general, you then would have to hunt around for the
place/file that is setting the resource, and that can be tricky because it
could be in any one of a number of places. There could be system-wide
resource files, application-specific resource files, and your own
resource files. If the resource is in a place that you can't change (or
find), then you could try setting it yourself, overriding it, in your own
resources to a value that works. That should get rid of the message.
Karl
|
|
|