comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Linux Font Warning
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Linux Font Warning [message #45704] Fri, 30 September 2005 11:10
James Kuyper is currently offline  James Kuyper
Messages: 425
Registered: March 2000
Senior Member
Karl Schultz wrote:
> 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.

Note: you can use xfontsel to find out what fonts are available on your
system.

It's possible that what it should have been was
-*-courier-*-*-*-*-12-*-*-*-*-*-*-*. If you're willing to risk
ambiguity, you can abbreviate it. On my system, xlsfonts
"*courier*12-*" lists the same 8 fonts as the full specification.
However, the font specification can't be abbreviated to courier*12.
Re: Linux Font Warning [message #45705 is a reply to message #45704] Fri, 30 September 2005 10:34 Go to previous message
Karl Schultz is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Question about volume objects and opacity
Next Topic: Re: Question about volume objects and opacity

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 11:38:01 PDT 2025

Total time taken to generate the page: 2.24089 seconds