Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.3.3

Bug #18550 Problem loading courier font font variants
Submitted: 2011-05-19 08:48 UTC
From: roncemer Assigned: yunosh
Status: Closed Package: File_PDF (version 0.3.2)
PHP Version: 5.3.6 OS: Fedora 14 x86_64
Roadmaps: (Not assigned)    

 [2011-05-19 08:48 UTC] roncemer (Ron Cemer)
Description: ------------ If you create a new PDF and call $pdf->setFont('courier', 'B', 10), it will fail. This is because the included courier.php is for courier and all of its variants (bold, italic, bold+italic), but File_PDF isn't smart enough to figure that out. The only workaround I can see, is to first call $pdf->setFont('courier', '', 10) to get all of the courier fonts into its cache. Test script: --------------- pdf = @File_PDF::factory(array( 'format'=>$bankCheckDesign->pageFormat, 'orientation'=>$bankCheckDesign->pageOrientation, 'unit'=>'pt', )); $pdf->setFont('courier', '', 10); Expected result: ---------------- Should just work (silently). Actual result: -------------- Issues error message; fails to load the courier bold font.


 [2011-08-07 03:49 UTC] yunosh (Jan Schneider)
-Status: Open +Status: Closed -Assigned To: +Assigned To: yunosh
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at