Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ FntsOfFntSt(3X) — DeltaWindows 1.3.3 Release 4 Version 4.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

 

NAME

XFontsOfFontSet — get the list of fonts used by a font set. 

SYNOPSIS

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_setSpecifies the font set. 

font_struct_list_return
Returns the list of font structs.

font_name_list_return
Returns the list of font names.

RETURNS

The number of fonts in the list (which is also the number of elements in the lists of structures). 

AVAILABILITY

Release 5 and later. 

DESCRIPTION

XFontsOfFontSet() returns a list of one or more XFontStructs and font names for the fonts used by 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-terminated, fully specified, font name strings in the locale of the font set is returned to font_name_list_return.  The number of elements in each array is returned as the value of the function.  The arrays are in the same order, and their elements correspond to one another. 

Because it is not guaranteed that a given character will be imaged using a single font glyph, there is no provision for mapping a character 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. 

It is not required that fonts be 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() on the associated XFontSet.  Until freed, their contents will not be modified by Xlib. 

SEE ALSO

XCreateFontSet(), XExtentsOfFontSet(), XBaseFontNameListOfFontSet(), XLocaleOfFontSet(). 

Xlib Reference Manual

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026