DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

XmFontListEntryGetFont(Xm)


XmFontListEntryGetFont -- a font list function that retrieves font information from a font list entry

Syntax

#include <Xm/Xm.h>

XtPointer XmFontListEntryGetFont (entry, type_return) XmFontListEntry entry; XmFontType *type_return;

Description

XmFontListEntryGetFont retrieves font information for a specified font list entry. If the font list entry contains a font, type_return returns XmFONT_IS_FONT and the function returns a pointer to an XFontStruct. If the font list entry contains a font set, type_return returns XmFONT_IS_FONTSET and the function returns the XFontSet.

entry
Specifies the font list entry.

type_return
Specifies a pointer to the type of the font element for the current entry. Valid values are XmFONT_IS_FONT and XmFONT_IS_FONTSET.

The returned XFontSet or XFontStruct is not a copy of the toolkit data and must not be freed.

Return value

Returns an XFontSet or a pointer to an XFontStruct structure.

See also

XmFontList(Xm), XmFontListEntryCreate(Xm), XmFontListEntryGetTag(Xm) XmFontListEntryLoad(Xm) and XmFontListNextEntry(Xm).
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003