The
XQueryFont()
function returns a pointer to the
XFontStruct
structure, which contains information associated with the font.
You can query a font or the font stored in a GC.
The font ID stored in the
XFontStruct
structure will be the
GContext
ID, and you need to be careful when using this ID in other functions
(see
XGContextFromGC()).
If the font does not exist,
XQueryFont()
returns NULL.
To free this data, use
XFreeFontInfo().