I found out that you must copy the <fontname>.afm files next to your php because it's searched there in default.
![]() | ps_findfont说明int ps_findfont ( resource psdoc, string fontname, string encoding [, bool embed] )Loads a font for later use. Before text is output with a loaded font it must be set with ps_setfont(). This function needs the adobe font metric file in order to calculate the space used up by the characters. A font which is loaded within a page will only be available on that page. Fonts which are to be used in the complete document have to be loaded before the first call of ps_begin_page(). Calling ps_findfont() between pages will make that font available for all following pages. 参数
返回值Returns the identifier of the font or zero in case of an error. The identifier is a positive number. ![]()
pepe at dexef dot hu
13-Apr-2006 06:19
I found out that you must copy the <fontname>.afm files next to your php because it's searched there in default.
zeldorblat at gmail dot com
25-Jul-2005 10:47
I found that my Postscript files were taking an incredibly long time to generate and the file sizes were abnormally large. The problem was that, everytime I chose to set a font I would call ps_findfont() followed by ps_setfont(). | ![]() |