XUnloadFont

Syntax

XUnloadFont(display, font)
      Display *display;
      Font font;

Arguments

display Specifies the connection to the X server.
font Specifies the font.

Description

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

XUnloadFont() can generate a BadFont error.

Diagnostics

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

See also

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