<!-- $XConsortium: FontLstU.sgm /main/8 1996/09/08 20:44:33 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.MAN240.rsml.1">
<RefMeta>
<RefEntryTitle>XmFontListInitFontContext</RefEntryTitle>
<ManVolNum>library call</ManVolNum>
</RefMeta>
<RefNameDiv>
<RefName><Function>XmFontListInitFontContext</Function></RefName>
<RefPurpose>A font list function that allows
applications to access the entries in a font list
<IndexTerm>
<Primary>XmFontListInitFontContext</Primary>
</IndexTerm><IndexTerm>
<Primary>font list functions</Primary>
<Secondary>XmFontListInitFontContext</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>Boolean <Function>XmFontListInitFontContext</Function></FuncDef>
<!--<ParamDef><Replaceable>context, fontlist</Replaceable></ParamDef>-->
<ParamDef>XmFontContext <Parameter>*context</Parameter></ParamDef>
<ParamDef>XmFontList <Parameter>fontlist</Parameter></ParamDef>
</FuncSynopsis>
</RefSynopsisDiv>
<RefSect1>
<Title>DESCRIPTION</Title>
<Para><Function>XmFontListInitFontContext</Function>
establishes a context to allow applications to access the contents
of a font list. This context is used when reading the font
list entry tag, font, or font set associated with each entry in
the font list. A Boolean status is returned to indicate whether
or not the font list is valid.
</Para>
<Para>If an application deallocates the font list passed to
<Function>XmFontListInitFontContext</Function> as the fontlist argument, the context
established by this function is rendered no longer valid.
</Para>
<VariableList>
<VarListEntry>
<Term><Symbol Role="Variable">context</Symbol></Term>
<ListItem>
<Para>Specifies a pointer to the allocated context
</Para>
</ListItem>
</VarListEntry>
<VarListEntry>
<Term><Symbol Role="Variable">fontlist</Symbol></Term>
<ListItem>
<Para>Specifies the font list
</Para>
</ListItem>
</VarListEntry>
</VariableList>
</RefSect1>
<RefSect1>
<Title>RETURN</Title>
<Para>Returns True if the context was allocated; otherwise, returns False.
If the function allocated a context, the application is responsible
for managing the allocated space. The application can recover the
allocated space by calling <Function>XmFontListFreeFontContext</Function>.
</Para>
</RefSect1>
<RefSect1>
<Title>RELATED</Title>
<Para>&cdeman.XmFontList;,
&cdeman.XmFontListFreeFontContext;, and
&cdeman.XmFontListNextEntry;.
</Para>
</RefSect1>
</RefEntry>
<!--fickle 1.09 7/2/95-->
