Here are the individual font preparation routines.
Font XLoadFont(display,name) /* load a font returning the font-id */
char *name; /* null-terminated font name */
Status XQueryFont(font, info)
Font font; /* for the font with this font-id */
FontInfo *info; /* RETURN with FontInfo filled in */
/* except for the font widths array */
XFreeFontInfo(names,info,actual_count)
XUnloadFont(display,font)
short *XFontWidths(font)
Font font; /* fill font widths array for font */