fonts in pdf export
We are using the Zend_Pdf module from Zend Framework to create the PDFs for the contact and lead export functionality.
Sadly, the build-in type1 fonts of Zend_Pdf don't support unicode characters. But we have added the possiblity to include your own fonts (in truetype or opentype format) to display more exotic characters. I got some good results with the DejaVu font that came with OpenOffice on my Ubuntu system. This feature is part of the upcoming beta1 release.
To include your fonts, you have to add the following lines to the config.inc.php in the tine root dir and adjust the paths and embed setting:
'pdfexport' => array(
'fontpath' => '/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf',
'fontpathbold' => '/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf',
'fontembed' => true
)
Does anybody know a (tt or ot) font that has full unicode support?
Sadly, the build-in type1 fonts of Zend_Pdf don't support unicode characters. But we have added the possiblity to include your own fonts (in truetype or opentype format) to display more exotic characters. I got some good results with the DejaVu font that came with OpenOffice on my Ubuntu system. This feature is part of the upcoming beta1 release.
To include your fonts, you have to add the following lines to the config.inc.php in the tine root dir and adjust the paths and embed setting:
'pdfexport' => array(
'fontpath' => '/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf',
'fontpathbold' => '/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf',
'fontembed' => true
)
Does anybody know a (tt or ot) font that has full unicode support?
Labels: fonts, pdf, php, tine20, zendframework