[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
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> 11 1.5 12 <H4 CLASS='st'>Description</H4> 13 Imports a TrueType or Type1 font and makes it available. It is necessary to generate a font 14 definition file first with the makefont.php utility. 15 <BR> 16 The definition file (and the font file itself when embedding) must be present either in the 17 current directory or in the one indicated by <TT>FPDF_FONTPATH</TT> if the constant is defined. 18 If 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> 22 Font family. The name can be chosen arbitrarily. If it is a standard family name, it will 23 override the corresponding font. 24 </BLOCKQUOTE> 25 <TT><U>style</U></TT> 26 <BLOCKQUOTE> 27 Font 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> 34 The default value is regular. 35 </BLOCKQUOTE> 36 <TT><U>file</U></TT> 37 <BLOCKQUOTE> 38 The font definition file. 39 <BR> 40 By 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->AddFont('Comic','I'); 46 </TT> 47 </TD></TR></TABLE><BR> 48 is equivalent to: 49 <BR> 50 <BR> 51 <TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD> 52 <TT> 53 $pdf->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>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |