SF(3)

NAME
setfont

SYNOPSIS
#include <panda.h>

void setfont(pdf *, char *name);

DESCRIPTION
The function setfont sets the current font to be used for textboxes et cetera within the PDF file. The default font is Helvetica. The font which is used is 'sticky' and therefore used for all subsequent text boxes until a different font is selected. Please note that fonts are not normally embedded into the PDF document, so the display of the slected font relies on the font being available on the target system. There is also a list of supported fonts available from Adobe at http://www.adobe.com. There are also some fonts which are gauranteed to either be available to the viewer, or have close equivalents available. They are: Courier; Courier-Bold; Courier-Oblique; Courier-BoldOblique; Helvetica; Helvetica-Bold; Helvetica-Oblique; Helvetica-BoldOblique; Times-Roman; Times-Bold; Times-Italic; Times-BoldItalic; Symbol; and ZapfDingbats (PDF 1.3 specification, second edition, page 296).

EXAMPLE
Simply use:
    #include <panda.h>
    pdf *document;
    document = openpdf("filename", "w");
    setfont(document, "Helvetica");

AUTHOR
Panda is under development by Michael Still (mikal@stillhq.com). All code is Copyright Michael Still 2000, and is released under the GPL. Code submissions are welcomed. Contact Michael at the address above if you have something you would like to contribute.

BUGS
There are no known bugs in Panda. If you find one, please contact mikal@stillhq.com and let me know.

VERSION
This information relates to version 0.3 of Panda