Display *display; char *font_name; XFontStruct *font; font = XLoadQueryFont ( display, font_name ); if ( font != (XFontStruct *) NULL ) { /* success */ } /* End of File */