PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
$font = pdf_findfont($pdf, "Times New Roman", "winansi", 1);
gives
Fatal error: PDFlib error: [2516] PDF_findfont: Metrics data for font 'Times New Roman' not found in xxxx.php on line xx
I copied the times new roman font file into the dirt where the script resides but no luck. Is there any particular place for this ?
Running on Win 2K3 Server - IIS 6.
it likely needs to be somewhere in the include path. Maybe try putting it where the script is being called from, instead of where the script is stored.
Tried : pdf_set_parameter($pdf, "resourcefile", "c:\\windows\\fonts\\times.ttf");
Still : Fatal error: PDFlib error: [2516] PDF_findfont: Metrics data for font 'Times New Roman' not found in xxx.php on line xx