PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<pdf_fillpdf_get_buffer>
Last updated: Mon, 16 Jul 2012

pdf_findfont

(PHP 4 >= 4.0.5, PECL)

pdf_findfont -- Prepare font for later use with pdf_setfont()

Description

int pdf_findfont ( resource pdfdoc, string fontname, string encoding, int embed )

Prepare a font for later use with pdf_setfont(). The metrics will be loaded, and if embed is nonzero, the font file will be checked, but not yet used. encoding is one of builtin, macroman, winansi, host, a user-defined encoding name or the name of a CMap. Parameter embed was optional before PHP 5.

pdf_findfont() returns a font handle or FALSE on error.

例子 1. pdf_findfont() example

<?php

$font
= pdf_findfont($pdf, "Times New Roman", "winansi", 1);
if (
$font) {
  
pdf_setfont($pdf, $font, 10);
}

?>




<pdf_fillpdf_get_buffer>
 Last updated: Mon, 16 Jul 2012
 
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://manual.phpv.net/
Last updated: Thu Jul 7 19:13:47 2005 CST