pdf_findfont()
int = pdf_findfont(resource pdf,string fontname,string encoding[, int embed])
フォントを検索し、見つかった場合フォントIDを返す。フォントIDは、pdf_setfont()で使用される。embedが0以外の場合、フォントの検索は行われますが使用はされない。encodingは文字のエンコーディング("bulltin","macroman","winansi","host"またはユーザ定義の文字コード名)。
pdf_findfont()の使い方
$pdf = pdf_new();
pdf_open_file($pdf,"save.pdf"); //PDFファイルsave.pdfを作成
pdf_begin_page($pdf,595,842); //A4サイズで新規作成。
pdf_findfont($pdf,"HeiseiMin-W3","EUC-H",0); //平成明朝を利用する
