To return a list of the available font names, use XListFonts().
To free a font name array, use XFreeFontNames().
To obtain the names and information about available fonts, use XListFontsWithInfo().
To free font structures and font names, use XFreeFontInfo().