note 9491 modified in function.pdf-set-font by danbrown

From: Date: Fri, 28 Nov 2008 21:58:54 +0000
Subject: note 9491 modified in function.pdf-set-font by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-147286@lists.php.net to get a copy of this message
To anyone who is trying to add extra FONTS to work with PHP and pdflib. Take a look at: ftp://ftp.adobe.com/pub/adobe/type/win/all/afmfiles/ - This is collection of fonts already converted to AFM. There are thousands of fonts. What I am doing is downloading everything, and then I will grep my way through the directories to find what I am looking for. Another tip: to get the pdflib.upr file working with your fonts add: putenv("PDFLIBRESOURCE=/dir/where/the/file/is/fonts/pdflib.upr"); on the beginning of your php script. And make sure you change the Font Definition entry on your pdflib.upr file as well. It needs to point to the directory where the .afm files are. --was-- To anyone who is trying to add extra FONTS to work with PHP and pdflib. Take a look at: ftp://ftp.adobe.com/pub/adobe/type/win/all/afmfiles/ - This is collection of fonts already converted to AFM. There are thousands of fonts. What I am doing is downloading everything, and then I will grep my way through the directories to find what I am looking for. Another tip: to get the pdflib.upr file working with your fonts add: putenv("PDFLIBRESOURCE=/dir/where/the/file/is/fonts/pdflib.upr"); on the beginning of your php script. And make sure you change the Font Definition entry on your pdflib.upr file as well. It needs to point to the directory where the .afm files are. http://php.net/manual/en/function.pdf-set-font.php

« previous php.notes (#147286) next »