# sFPDF

## Informations

Author: Ian Back
License: LGPL

## Description

This class is a modified version of FPDF that adds UTF-8 support. Moreover, it embeds only the necessary parts of the fonts that are used in the document, making the file size much smaller than if the whole fonts were embedded. These features were originally developed for the mPDF project.
Before you can use UTF-8, you have to install at least one Unicode font in the font/unifont directory. Some free font packages are available for download (extract them into font/unifont):

Fonts from the DejaVu family:

- DejaVu Sans
- DejaVu Sans Condensed
- DejaVu Serif
- DejaVu Serif Condensed
- DejaVu Sans Mono

Fonts from the GNU FreeFont family:

- FreeSans
- FreeSerif
- FreeMono

You can also make your own fonts by pointing your browser to font/unifont/makefonts/makefonts.php and following instructions (if you're on Windows).
Then, to use a Unicode font in your script, pass `true` as the fourth parameter of `AddFont()`.
Note: this class requires the mbstring extension.