XFreeFont()(display, font_struct)
      Display *display;
      XFontStruct *font_struct;


display Specifies the connection to the X server.
font_struct Specifies the storage associated with the font.


The XFreeFont() function deletes the association between the font resource ID and the specified font and frees the XFontStruct structure. The font itself will be freed when no other resource references it. The data and the font should not be referenced again.

XFreeFont() can generate a BadFont error.


BadFont A value for a font argument does not name a defined font (or, in some cases, GContext).

See also

XCreateGC(), XGetFontProperty(), XListFonts(), XLoadFont(), XLoadQueryFont(), XQueryFont(), XSetFontPath(), XUnloadFont(), "Loading and Freeing Fonts".
Christophe Tronche, ch@tronche.com