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 فȽ{î oݗ7wLZW_A<5U}Aw%],솊 O+_em Ѻ8{/ѤO+_em OE*6iX[2x:[=м4A? 2KTݟ (PAm;3W\Nci9_+N6`opZ5ɾ1hBO+_em vn6O$Ww;tsT"Դ̿۬eGX'o].{=ktYQ4uSͨu1 &5dP +&PJ [\$file in the .php file accordingly.

Example:
<?php
require('makefont/makefont.php');

MakeFont('C:\\Windows\\Fonts\\comic.ttf','cp1252');
?>
which gives the files comic.php and comic.z.

Then copy the generated files to the font directory. If the font file could not be compressed, copy it directly instead of the .z version.

Another way to call MakeFont() is through the command line:

php makefont\makefont.php C:\Windows\Fonts\comic.ttf cp1252

Finally, for TrueType and OpenType fonts, you can also generate the files online instead of doing it manually.

Declaration of the font in the script

The second step is simple. You just need to call the AddFont() method:
$pdf->AddFont('Comic','','comic.php');
And the font is now available (in regular and underlined styles), usable like the others. If we had worked with Comic Sans MS Bold (comicbd.ttf), we would have written:
$pdf->AddFont('Comic','B','comicbd.php');

Example

Let's now see a complete example. We will use the font Calligrapher. The first step is the generation of the font files:
<?php
require('makefont/makefont.php');

MakeFont('calligra.ttf','cp1252');
?>
The script gives the following report:

Warning: character Euro is missing
Warning: character zcaron is missing
Font file compressed: calligra.z
Font definition file generated: calligra.php

The euro character is not present in the font (it's too old). Another character is missing too.

Alternatively we could have used the command line:

php makefont\makefont.php calligra.ttf cp1252

or used the online generator.

We can now copy the two generated files to the font directory and write the script:
<?php
require('fpdf.php');

$pdf = new FPDF();
$pdf->AddFont('Calligrapher','','calligra.php');
$pdf->AddPage();
$pdf->SetFont('Calligrapher','',35);
$pdf->Write(10,'Enjoy new fonts with FPDF!');
$pdf->Output();
?>

[Demo]