BlaBla.cn

PHP: cpdf_set_font - Manual

BlaBla.cn
cpdf_set_horiz_scaling > <cpdf_set_font_map_file
Last updated: Wed, 19 Mar 2008

cpdf_set_font

(PHP 4, PHP 5 <= 5.0.5)

cpdf_set_font — Select the current font face and size

说明

bool cpdf_set_font ( int $pdf_document , string $font_name , float $size , string $encoding )

Sets the current font face, font size and encoding.

参数

pdf_document

The document handle, returned by cpdf_open().

font_name

The font name. Currently only the standard postscript fonts are supported.

See the ClibPDF Manual for more information, especially on how to support Asian fonts.

size

The font size

encoding

Can take the following values: MacRomanEncoding, MacExpertEncoding, WinAnsiEncoding, and NULL (the font's built-in encoding).

返回值

如果成功则返回 TRUE ,失败则返回 FALSE




cpdf_set_horiz_scaling > <cpdf_set_font_map_file
Last updated: Wed, 19 Mar 2008
 
 
BlaBla.cn

© 2005-2008 BlaBla.cn 版权所有