XFontsOfFontSet(3X) XLIB FUNCTIONS XFontsOfFontSet(3X)NAMEXFontsOfFontSet - obtain font set information
SYNTAX
int XFontsOfFontSet(font_set, font_struct_list_return,
font_name_list_return)
XFontSet font_set;
XFontStruct ***font_struct_list_return;
char ***font_name_list_return;
ARGUMENTS
font_set Specifies the font set.
font_struct_list_return
Returns the list of font structs.
font_name_list_return
Returns the list of font names.
DESCRIPTION
The XFontsOfFontSet function returns a list of one or more XFontStructs
and font names for the fonts used by the Xmb and Xwc layers, for the
given font set. A list of pointers to the XFontStruct structures is
returned to font_struct_list_return. A list of pointers to null-termi‐
nated, fully specified font name strings in the locale of the font set
is returned to font_name_list_return. The font_name_list order corre‐
sponds to the font_struct_list order. The number of XFontStruct struc‐
tures and font names is returned as the value of the function.
Because it is not guaranteed that a given character will be imaged
using a single font glyph, there is no provision for mapping a charac‐
ter or default string to the font properties, font ID, or direction
hint for the font for the character. The client may access the
XFontStruct list to obtain these values for all the fonts currently in
use.
Xlib does not guarantee that fonts are loaded from the server at the
creation of an XFontSet. Xlib may choose to cache font data, loading
it only as needed to draw text or compute text dimensions. Therefore,
existence of the per_char metrics in the XFontStruct structures in the
XFontStructSet is undefined. Also, note that all properties in the
XFontStruct structures are in the STRING encoding.
The XFontStruct and font name lists are owned by Xlib and should not be
modified or freed by the client. They will be freed by a call to
XFreeFontSet with the associated XFontSet. Until freed, their contents
will not be modified by Xlib.
SEE ALSOXCreateOC(3X), XBaseFontNameListOfFontSet(3X), XLocaleOfFontSet(3X),
XContextDependentDrawing(3X), XContextualDrawing(3X), XDirectionalDe‐
pendentDrawing(3X)X Version 11 Release 6 XFontsOfFontSet(3X)