XFreeFontInfo()XFreeFontInfo()NameXFreeFontInfo – free the memory allocated by XListFontsWithInfo.
Synopsis
XFreeFontInfo(names, info, actual_count)
char **names;
XFontStruct *info;
int actual_count;
Arguments
names Specifies a pointer to the list of font names that were
returned by XListFontsWithInfo().
info Specifies a pointer to the list of font information that was
returned by XListFontsWithInfo().
actual_count
Specifies the number of matched font names returned by XList‐
FontsWithInfo().
DescriptionXFreeFontInfo() frees the list of font information structures allocated
by XListFontsWithInfo(). It does not unload the specified fonts them‐
selves. To free an XFontStruct structure without closing the font,
call XFreeFontInfo() with the names argument specified as NULL.
Structures
typedef struct {
XExtData *ext_data; /* hook for extension to hang data */
Font fid; /* Font ID for this font */
unsigned direction; /* hint about direction the font is painted */
unsigned min_char_or_byte2; /* first character */
unsigned max_char_or_byte2; /* last character */
unsigned min_byte1; /* first row that exists */
unsigned max_byte1; /* last row that exists */
Bool all_chars_exist; /* flag if all characters have non-zero size */
unsigned default_char; /* char to print for undefined character */
int n_properties; /* how many properties there are */
XFontProp *properties; /* pointer to array of additional properties */
XCharStruct min_bounds; /* minimum bounds over all existing char */
XCharStruct max_bounds; /* maximum bounds over all existing char */
XCharStruct *per_char; /* first_char to last_char information */
int ascent; /* logical extent above baseline for spacing */
int descent; /* logical descent below baseline for spacing */
} XFontStruct;
See AlsoXCreateFontCursor(), XFreeFont(), XFreeFontNames(), XGetFontPath(),
XGetFontProperty(), XListFonts(), XListFontsWithInfo(), XLoadFont(),
XLoadQueryFont(), XQueryFont(), XSetFont(), XSetFontPath(), XUnload‐
Font().
Xlib - Fonts XFreeFontInfo()