Re: Conundrum [message #11656 is a reply to message #11653] |
Tue, 19 May 1998 00:00   |
J.D. Smith
Messages: 214 Registered: August 1996
|
Senior Member |
|
|
David Fanning wrote:
>
> J.D. Smith (jdsmith@astrosun.tn.cornell.edu) writes:
>
>> Any ideas why the command:
>>
>> device,get_fontnames=df,font='*cour*bold-r-normal*--14*'
>>
>> causes a graphics window to open if one isn't yet? Any way around
>> this?
>
> I'm taking a stab in the dark. I suspect because there has
> to be some kind of connection to the X display system to
> get the fonts and that connection (e.g. choosing a visual
> class) is not made until a graphics window is open in an
> X environment. I'd try making a pixmap before I issued the
> command to see if my thinking is correct.
>
>> Thoughts on general cross-platform font selection schemes for
>> widget fonts (not graphics fonts)?
>
> Uh, let the end user worry about widget fonts. They are
> going to change it anyway (or *can*, which often amounts
> to the same thing), no matter what you choose. :-)
>
> Cheers,
>
> David
>
Sounds good to me. I thought something like that... what I wonder is
why doesn't it open and free a pixmap, rather than a real window by
default. In anycase, if I have an open pixmap window, it will work just
fine. My problem with widget fonts is, e.g. for display of formatted
text. Non-uniform spacing fonts are very rude. I should probably try
to implement things in a table widget or something, but what a lot of
overhead just to show some columns of data!
JD
--
J.D. Smith |*| WORK: (607) 255-5842
Cornell University Dept. of Astronomy |*| (607) 255-4083
206 Space Sciences Bldg. |*| FAX: (607) 255-5875
Ithaca, NY 14853 |*|
|
|
|