DOMPDF Web-based font prep tool

Development status: alpha

Note: If you are using dompdf v0.6.0 beta 3 or newer you can now use the built-in PHP-based font parsing tool (php-font-lib).

  1. 2011-05-05

    • Added a new parser based on TTFontsUni PHP class from Ian Back (mPDF)

  2. 2011-03-15

    • Added support for the newer dompdf_font_family_cache format

  3. 2010-11-30

    • Fixed code order error which prevented processing of any fonts.

  4. 2010-10-22

    • Added additional error checks to avoid sending unusable files back to the user.

  5. 2010-10-19

    • Uses DOMPDF 0.6.0 beta 1 in order to be compatible with current public releases

    • Added tar.gz compression option

    • Using content buffering to try and avoid archive file corruption

  1. Known Issues

    • When using the PHP-based font parser (ttf2ufm.php) no AFM files are produced. It is recommended that you enable Unicode support in DOMPDF when using this parser.

    • When using the PHP-based font parser (ttf2ufm.php) the font metrics do not include BBox values.

    • When using the PHP-based font parser (ttf2ufm.php) the font metrics use Unicode codes instead of the font-defined friendly names for characters.

    • When using the binary font parser (ttf2ufm) the amount of memory required may exceeed available resources, resulting in zero-byte font metrics files (and an error message stating that your font could not be processed)

    • Sometimes dompdf_font_family_cache is inserted in plain text at the front of the archive file

In order to use fonts outside the core PDF fonts you first have to "install" them into DOMPDF. If you find yourself having trouble with this process you can use this tool to generate the files you will need to do so.

After you submit your font files for processing your browser will download an archive file. Copy the contents of this archive to your DOMPDF fonts folder (typically located at dompdf/lib/fonts). If you have not previously installed fonts, you can rename the file dompdf_font_family_cache.sample to be dompdf_font_family_cache. If you have previously installed fonts you will need to copy the relevant entry from the sample file into your copy of the dompdf_font_family_cache file. Once you have taken these steps your font should be installed and ready to use.

Please submit questions and/or feedback about this tool to the support group.

Font Information

Font Files:

Options:

Notes: The PHP-based parser is perferred for large font files (such as fonts with Unicode support). If your font does not process with the binary font processor please try the PHP-based one. See the known issues above for other notes regarding the parsers.
The binary font processor has been temporarily disabled due to issues with memory saturation.