Location: PHPKode > projects > PHP OpenTailorShop > phpopentailorshop/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">
<code>AddFont(<b>string</b> family [, <b>string</b> style [, <b>string</b> file]])</code>
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.
<dl class="param">
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>
<li><code>B</code>: bold</li>
<li><code>I</code>: italic</li>
<li><code>BI</code> or <code>IB</code>: bold italic</li>
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.
<div class="doc-source">
is equivalent to:
<div class="doc-source">
<h2>See also</h2>
<a href="setfont.htm">SetFont()</a>.
<hr style="margin-top:1.5em">
<div style="text-align:center"><a href="index.htm">Index</a></div>
Return current item: PHP OpenTailorShop