<!-- 

     This document is part of the libplot distribution, and is covered
     by the GNU GPL, a copy of which is in the file named COPYING inside the
     distribution.

     This program and it's documentation are distributed in the hope that 
     they will be useful,but WITHOUT ANY WARRANTY; without even the implied 
     warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     GNU General Public License for more details.
-->

<!DOCTYPE refentry PUBLIC "-//Davenport//DTD DocBook V3.0//EN">

<refentry id="plot_setfont">
<refmeta>
<refentrytitle>plot_setfont</refentrytitle>
<manvolnum>3</manvolnum>
</refmeta>

<refnamediv>
<refname>plot_setfont</refname>
<refpurpose>sets the starting point of a curve</refpurpose>
</refnamediv>

<refsynopsisdiv>
<synopsis>
 #include&amp;lt;libmplot.h&amp;gt;
 void panda_setfont (plot_state *state, char *fontpath, int size);

</synopsis>
</refsynopsisdiv>

<refsect1>
<title>DESCRIPTION</title>
<para>Set the font and size to use to text drawing operations. The &lt;command&gt;fontpath&lt;/command&gt; arguement is the path to a font which &lt;command&gt;FreeType&lt;/command&gt; is capable of opening (for example PostScript fonts, and TrueType fonts -- refer to http://www.freetype.org for more details). The size is the point size of the text to be drawn.</para>
</refsect1>

<refsect1>
<title>RETURNS</title>
<para>A negative number on failure, 0 if all is well</para>
</refsect1>

<refsect1>
<title>EXAMPLE</title>
<programlisting>
 #include&amp;lt;libmplot.h&amp;gt;
 plot_state *graph;
 if((graph = plot_newplot(400, 300)) == NULL){
 ... error ...
 }
 plot_setfont(graph, "windings.ttf", 30);
</programlisting>
</refsect1>


<refsect1>
    <title>VERSION</title>
    <para>
This documentation was generated for <command>libplot</command> 0.3 by <command>autodocbook</command> (http://www.stillhq.com).
    </para>
</refsect1>

<refsect1>
    <title>AUTHOR</title>
    <para>
<command>libplot</command> is under development by Michael Still (mikal@stillhq.com). All code is Copyright Michael Still 2002,  and is released under the GNU GPL. Code submissions are welcomed. Contact Michael at the address above if you have something you would like to contribute.
</para>
</refsect1>

<refsect1>
    <title>BUGS</title>
    <para>
There  are no known bugs in <command>libplot</command>. If you find one, please contact mikal@stillhq.com and let me know.
</para>
</refsect1>
</refentry>
