(PHP 4, PHP 5)
imagepsextendfont — 擴(kuò)充或精簡(jiǎn)字體
說(shuō)明
bool imagepsextendfont ( resource$font_index
, float $extend
)
擴(kuò)充或精簡(jiǎn)某字體(font_index
)。如果
extend
參數(shù)的值小于一則是精簡(jiǎn)該字體。
參數(shù)
font_index
由 imagepsloadfont() 返回的字體資源。
extend
擴(kuò)展的值,必須大于 0。
返回值
成功時(shí)返回 TRUE
, 或者在失敗時(shí)返回 FALSE
。
范例
Example #1 imagepsextendfont() 例子
<?php
// Load a .pfb font file
$font = imagepsloadfont('./px3l.pfb');
// Extend the font by 2.5
imagepsextendfont($font, 2.5);
// Do any operations with the font here
// Free the font from memory
imagepsfreefont($font);
?>
注釋
Note: 此函數(shù)僅在 PHP 編譯時(shí)指定了 --with-t1lib[=DIR] 時(shí)可用。