AnonSec Shell
Server IP : 20.75.53.88  /  Your IP : 216.73.217.72   [ Reverse IP ]
Web Server : Apache
System : Linux VMRALP-3 4.4.0-256-generic #290~14.04.1-Ubuntu SMP Thu Jun 20 09:24:50 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 5.5.9-1ubuntu4.29+esm15
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
Domains : 3 Domains
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/merenda/vicosa25/fpdf/doc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/www/html/merenda/vicosa25/fpdf/doc/setfont.htm
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>SetFont</title>
    <link type="text/css" rel="stylesheet" href="../fpdf.css">
</head>
<body>
<h1>SetFont</h1>
<code>SetFont(<b>string</b> family [, <b>string</b> style [, <b>float</b> size]])</code>

<h2>Description</h2>
Sets the font used to print character strings. It is mandatory to call this method
at least once before printing text or the resulting document would not be valid.
<br>
The font can be either a standard one or a font added via the AddFont() method. Standard fonts
use Windows encoding cp1252 (Western Europe).
<br>
The method can be called before the first page is created and the font is retained from page
to page.
<br>
If you just wish to change the current font size, it is simpler to call SetFontSize().
<br>
<br>
<strong>Note:</strong> the font metric files must be accessible. They are searched successively in:
<ul>
    <li>The directory defined by the <code>FPDF_FONTPATH</code> constant (if this constant is defined)</li>
    <li>The <code>font</code> directory located in the directory containing <code>fpdf.php</code> (if it exists)</li>
    <li>The directories accessible through <code>include_once()</code></li>
</ul>
Example defining <code>FPDF_FONTPATH</code> (note the mandatory trailing slash):
<div class="doc-source">
<pre><code>define('FPDF_FONTPATH','/home/www/font/');
    require('fpdf.php');</code></pre>
</div>
If the file corresponding to the requested font is not found, the error "Could not include
font metric file" is issued.
<h2>Parameters</h2>
<dl class="param">
    <dt><code>family</code></dt>
    <dd>
        Family font. It can be either a name defined by AddFont() or one of the standard families (case
        insensitive):
        <ul>
            <li><code>Courier</code> (fixed-width)</li>
            <li><code>Helvetica</code> or <code>Arial</code> (synonymous; sans serif)</li>
            <li><code>Times</code> (serif)</li>
            <li><code>Symbol</code> (symbolic)</li>
            <li><code>ZapfDingbats</code> (symbolic)</li>
        </ul>
        It is also possible to pass an empty string. In that case, the current family is retained.
    </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>U</code>: underline</li>
        </ul>
        or any combination. The default value is regular.
        Bold and italic styles do not apply to <code>Symbol</code> and <code>ZapfDingbats</code>.
    </dd>
    <dt><code>size</code></dt>
    <dd>
        Font size in points.
        <br>
        The default value is the current size. If no size has been specified since the beginning of
        the document, the value taken is 12.
    </dd>
</dl>
<h2>Example</h2>

<div class="doc-source">
<pre><code>//Times regular 12
    $pdf-&gt;SetFont('Times');
    //Arial bold 14
    $pdf-&gt;SetFont('Arial','B',14);
    //Removes bold
    $pdf-&gt;SetFont('');
    //Times bold, italic and underlined 14
    $pdf-&gt;SetFont('Times','BIU');</code></pre>
</div>
<h2>See also</h2>
<a href="addfont.htm">AddFont()</a>,
<a href="setfontsize.htm">SetFontSize()</a>,
<a href="cell.htm">Cell()</a>,
<a href="multicell.htm">MultiCell()</a>,
<a href="write.htm">Write()</a>.
<hr style="margin-top:1.5em">
<div style="text-align:center"><a href="index.htm">Index</a></div>
</body>
</html>

Anon7 - 2022
AnonSec Team