(PHP 3>= 3.0.9, PHP 4 )

ImagePSCopyFont --  Make a copy of an already loaded font for further modification


int imagepscopyfont ( int fontindex)

Use this function if you need make further modifications to a font, for example extending/condensing, slanting it or changing it's character encoding vector, but need to keep a original along as well. Note that a font you want to copy must be one obtained using ImagePSLoadFont(), not a font that is itself a copied one. You can although make modifications to it before copying.

If you use this function, you must free a fonts obtained this way yourself and in reverse order. Otherwise your script will hang.

In a case everything went right, a valid font index will be returned and can be used for further purposes. Otherwise a function returns false and prints a message describing what went wrong.

Lásd még a ImagePSLoadFont().