source: trunk/phpgwapi/inc/fpdf/doc/addfont.htm @ 2

Revision 2, 1.8 KB checked in by niltonneto, 17 years ago (diff)

Removida todas as tags usadas pelo CVS ($Id, $Source).
Primeira versão no CVS externo.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1<HTML>
2<HEAD>
3<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
4<TITLE>AddFont</TITLE>
5<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
6</HEAD>
7<BODY>
8<H2>AddFont</H2>
9<TT>AddFont(<B>string</B> family [, <B>string</B> style [, <B>string</B> file]])</TT>
10<H4 CLASS='st'>Version</H4>
111.5
12<H4 CLASS='st'>Description</H4>
13Imports a TrueType or Type1 font and makes it available. It is necessary to generate a font
14definition file first with the makefont.php utility.
15<BR>
16The definition file (and the font file itself when embedding) must be present either in the
17current directory or in the one indicated by <TT>FPDF_FONTPATH</TT> if the constant is defined.
18If it could not be found, the error "Could not include font definition file" is generated.
19<H4 CLASS='st'>Parameters</H4>
20<TT><U>family</U></TT>
21<BLOCKQUOTE>
22Font family. The name can be chosen arbitrarily. If it is a standard family name, it will
23override the corresponding font.
24</BLOCKQUOTE>
25<TT><U>style</U></TT>
26<BLOCKQUOTE>
27Font style. Possible values are (case insensitive):
28<UL>
29<LI>empty string: regular
30<LI><TT>B</TT>: bold
31<LI><TT>I</TT>: italic
32<LI><TT>BI</TT> or <TT>IB</TT>: bold italic
33</UL>
34The default value is regular.
35</BLOCKQUOTE>
36<TT><U>file</U></TT>
37<BLOCKQUOTE>
38The font definition file.
39<BR>
40By default, the name is built from the family and style, in lower case with no space.
41</BLOCKQUOTE>
42<H4 CLASS='st'>Example</H4>
43<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
44<TT>
45$pdf-&gt;AddFont('Comic','I');
46</TT>
47</TD></TR></TABLE><BR>
48is equivalent to:
49<BR>
50<BR>
51<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
52<TT>
53$pdf-&gt;AddFont('Comic','I','comici.php');
54</TT>
55</TD></TR></TABLE><BR>
56<H4 CLASS='st'>See also</H4>
57<A HREF="setfont.htm">SetFont()</A>.
58<H6></H6>
59<HR>
60<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
61</BODY>
62</HTML>
Note: See TracBrowser for help on using the repository browser.