[comp.windows.x] Problem with Athena asciiStringWidget

fmg@homxc.UUCP (F.GOLDSTEIN) (09/16/88)

I am having a problem with the R2 asciiStringWidget.  I am trying to
get the font information from the widget.  I am assuming that this is
possible (the documentation lists XtNfont as a resource).  I have
tried (in vain) to get the font.  Apparently there is no such thing as
a FontInfo* as the docs say, but XFontStruct does exist.
All attempts have given me null pointers to the font.  Does anyone
an answer?

	Thanks.

		Floyd Goldstein
		att!homxc!fmg
-- 
Floyd Goldstein
AT&T Bell Laboratories
att!homxc!fmg (or) homxc!fmg@att.com
arpa!homxc!fmg (or) homxc!fmg@att.arpa

swick@ATHENA.MIT.EDU (Ralph R. Swick) (09/19/88)

     Date:  16 Sep 88 13:38:15 GMT
     From:  att!whuts!homxb!homxc!fmg@bloom-beacon.mit.edu  (F.GOLDSTEIN)

                                                             I am trying to
     get the font information from the widget.  I am assuming that this is
     possible (the documentation lists XtNfont as a resource).

Well, just because something is listed as a resource doesn't mean
XtGetValues will return it to you.  (C.F. asente, 17 Sep 88 00:56:48 GMT,
'Re: Clarification of "passing widget args to subwidgets"'.)

                                        Apparently there is no such thing as
     a FontInfo* as the docs say, but XFontStruct does exist.

You are correct.  This is a documentation error.

     All attempts have given me null pointers to the font.

This is a bug in the Ascii*Widgets.  There is no reasonable workaround
at present.