Xlib international text drawing is done using a set of one or more fonts, as needed for the locale of the text. Fonts are loaded according to a list of base font names supplied by the client and the charsets required by the locale. The XFontSet is an opaque type.
The XCreateFontSet() function is used to create an international text drawing font set.
The XFontsOfFontSet() function is used to obtain a list of XFontStruct structures and full font names given an XFontSet.
To obtain the base font name list and the selected font name list given an XFontSet, use the XBaseFontNameListOfFontSet() function.
To obtain the locale name given an XFontSet, use the XLocaleOfFontSet() function.
The XLocaleOfFontSet() function returns the name of the locale bound to the specified XFontSet as a null-terminated string.
The XFreeFontSet() function frees the specified font set. The associated base font name list, font name list, XFontStruct list, and XFontSetExtents, if any, are freed.