| 
 
update : 2015.11.03
 
php.shukuma.com검색:
  
 | 
ps_findfont(PECL ps >= 1.1.0) ps_findfont — Loads a font 설명
   int ps_findfont
    ( resource  
  $psdoc
   , string $fontname
   , string $encoding
   [, bool $embed = false
  ] )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. 
   The name of the afm file must be
    Calling ps_findfont() before the first page requires to output the postscript header which includes the BoundingBox for the whole document. Usually the BoundingBox is set with the first call of ps_begin_page() which now comes after ps_findfont(). Consequently the BoundingBox has not been set and a warning will be issued when ps_findfont() is called. In order to prevent this situation, one should call ps_set_parameter() to set the BoundingBox before ps_findfont() is called. 인수
 
 반환값Returns the identifier of the font or zero in case of an error. The identifier is a positive number.  |