alexande@fillmore.cs.unc.edu (Geoffrey D. Alexander) (12/18/90)
I am obtaining an XFontStruct via the following code: font_struct=XQueryFont(Xdata->display,XGContextFromGC(Xdata->gc)); After using the data in the XFontStruct, I need to free the XFontStruct. I can't use XFreeFont as this also unloads the font. I've also looked at using XFreeFontInfo, but it doesn't seem to apply directly. Looking at the code for XFreeFontInfo, it seems that XFreeFontInfo(NULL,font_struct,1) will work. However, I'm not real comfortable with this. Does anyone know the "proper" way to free an XFontStruct without unloading the font? Thanks, Geoff Alexander alexande@cs.unc.edu
rws@EXPO.LCS.MIT.EDU (Bob Scheifler) (12/18/90)
it seems that XFreeFontInfo(NULL,font_struct,1) will work. RTR4M. :-) There is an explicit statement saying you can do this.