<!-- $XConsortium: FontLstJ.sgm /main/8 1996/09/08 20:43:40 rws $ -->
<!-- (c) Copyright 1995 Digital Equipment Corporation. -->
<!-- (c) Copyright 1995 Hewlett-Packard Company. -->
<!-- (c) Copyright 1995 International Business Machines Corp. -->
<!-- (c) Copyright 1995 Sun Microsystems, Inc. -->
<!-- (c) Copyright 1995 Novell, Inc. -->
<!-- (c) Copyright 1995 FUJITSU LIMITED. -->
<!-- (c) Copyright 1995 Hitachi. -->

<RefEntry Id="CDEMMA.MAN231.rsml.1">
<RefMeta>
<RefEntryTitle>XmFontListCreate</RefEntryTitle>
<ManVolNum>library call</ManVolNum>
</RefMeta>
<RefNameDiv>
<RefName><Function>XmFontListCreate</Function></RefName>
<RefPurpose>A font list function that creates a font list
<IndexTerm>
<Primary>XmFontListCreate</Primary>
</IndexTerm><IndexTerm>
<Primary>font list functions</Primary>
<Secondary>XmFontListCreate</Secondary>
</IndexTerm></RefPurpose>
</RefNameDiv>
<!-- -->
<!-- @OSF_COPYRIGHT@-->
<!-- COPYRIGHT NOTICE-->
<!-- Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc.-->
<!-- ALL RIGHTS RESERVED (MOTIF). See the file named COPY.MOTIF.DOC for-->
<!-- the full copyright text.-->
<!-- -->
<!-- HISTORY-->
<!-- -->
<!-- **-->
<!-- **-->
<!-- **  (c) Copyright 1989, 1990, 1992 by Open Software Foundation, Inc.-->
<!-- **      All Rights Reserved.-->
<!-- **-->
<!-- **  (c) Copyright 1987, 1988, 1989, by Hewlett-Packard Company-->
<!-- **-->
<!-- **  (c) Copyright 1987, 1988 by Digital Equipment Corporation,-->
<!-- **      Maynard, MA.  All Rights Reserved.-->
<!-- **-->
<!-- **-->
<RefSynopsisDiv>
<FuncSynopsis>
<FuncSynopsisInfo>#include &lt;Xm/Xm.h>
</FuncSynopsisInfo>
<FuncDef>XmFontList <Function>XmFontListCreate</Function></FuncDef>
<!--<ParamDef><Replaceable>font, charset</Replaceable></ParamDef>-->
<ParamDef>XFontStruct <Parameter>* font</Parameter></ParamDef>
<ParamDef>XmStringCharSet <Parameter>charset</Parameter></ParamDef>
</FuncSynopsis>
</RefSynopsisDiv>
<RefSect1>
<Title>DESCRIPTION</Title>
<Para><Function>XmFontListCreate</Function> creates a new font list with a single element specified
by the provided font and character set. It also allocates the space for
the font list.
</Para>
<Para><Literal>NOTE:</Literal> This function is obsolete and exists for compatibility
with previous releases. It is replaced by <Function>XmFontListAppendEntry</Function>.
</Para>
<VariableList>
<VarListEntry>
<Term><Symbol Role="Variable">font</Symbol></Term>
<ListItem>
<Para>Specifies a pointer to a font structure for which the new font list is
generated. This is the structure returned by the XLib <Function>XLoadQueryFont</Function>
function.
</Para>
</ListItem>
</VarListEntry>
<VarListEntry>
<Term><Symbol Role="Variable">charset</Symbol></Term>
<ListItem>
<Para>Specifies the character set identifier for the font.
This can be <SystemItem Class="Constant">XmSTRING_DEFAULT_CHARSET</SystemItem>, but this value does not
comply with the AES, and it may be removed in future versions of Motif.
If the value
is <SystemItem Class="Constant">XmSTRING_DEFAULT_CHARSET</SystemItem>, the routine derives the
character set from the current language environment.
</Para>
</ListItem>
</VarListEntry>
</VariableList>
</RefSect1>
<RefSect1>
<Title>RETURN</Title>
<Para>Returns NULL if
<Symbol Role="Variable">font</Symbol>
or
<Symbol Role="Variable">charset</Symbol>
is NULL; otherwise, returns a new font list.
</Para>
</RefSect1>
<RefSect1>
<Title>RELATED</Title>
<Para>&cdeman.XmFontList; and
&cdeman.XmFontListAppendEntry;.
</Para>
</RefSect1>
</RefEntry>
<!--fickle 1.09 7/2/95-->
