Edit report at http://pear.php.net/bugs/bug.php?id=18550&edit=1
ID: 18550
Updated by: [email protected]
Reported By: ron at roncemer dot com
Summary: Problem loading courier font font variants
-Status: Open
+Status: Closed
Type: Bug
Package: File_PDF
Operating System: Fedora 14 x86_64
Package Version: 0.3.2
PHP Version: 5.3.6
-Assigned To:
+Assigned To: yunosh
Roadmap Versions:
New Comment:
-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
http://pear.php.net/get/
Previous Comments:
------------------------------------------------------------------------
[2011-05-19 04:48:42] roncemer
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.
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=18550&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.