Location: PHPKode > scripts > PHP DataGrid > modules/fpdf/doc/addfont.htm
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
<TT>AddFont(<B>string</B> family [, <B>string</B> style [, <B>string</B> file]])</TT>
<H4 CLASS='st'>Version</H4>
<H4 CLASS='st'>Description</H4>
Imports a TrueType or Type1 font and makes it available. It is necessary to generate a font
definition file first with the makefont.php utility.
The definition file (and the font file itself when embedding) must be present in the font directory.
If it is not found, the error "Could not include font definition file" is generated.
<H4 CLASS='st'>Parameters</H4>
Font family. The name can be chosen arbitrarily. If it is a standard family name, it will
override the corresponding font.
Font style. Possible values are (case insensitive):
<LI>empty string: regular
<LI><TT>B</TT>: bold
<LI><TT>I</TT>: italic
<LI><TT>BI</TT> or <TT>IB</TT>: bold italic
The default value is regular.
The font definition file.
By default, the name is built from the family and style, in lower case with no space.
<H4 CLASS='st'>Example</H4>
is equivalent to:
<H4 CLASS='st'>See also</H4>
<A HREF="setfont.htm">SetFont()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
Return current item: PHP DataGrid