Font Manager

Overview

The FontManager class is a stand-alone class that manages all the fonts for TCPDF.

Font Cache

The font list is built by the font manager with the listFontFiles() or getSelectFontList() methods. The list is then saved in the cache as ./cache/Sugarpdf/cachedFontList.php. This caching process prevents unnecessary parsing of the fonts folder. The font cache is automatically cleared when the delete() or add() methods are used. When you create a Font loadable module you will have to call the clearCachedFile() method in a post_execute and post_uninstall action in the manifest.php to clear the font cache.

Font Framework

The stock fonts for TCPDF are stored in the directory ./include/tcpdf/fonts/. If you would like to add additional fonts to the system, they should be added to the ./custom/include/tcpdf/fonts/ directory.

Font Pack

An additional set of fonts can be downloaded from SugarForge at the following link: http://www.sugarforge.org/projects/fontpack/.
This font pack will allow you to generate PDF documents in various languages. It extends the SugarCRM charsets to support most of the symbols in common use such as European, Cyrillic, Greek, Arabic and Hebrew.