(PHP 4, PHP 5)
imagepsslantfont — 傾斜某字體
說(shuō)明
bool imagepsslantfont ( resource$font_index
, float $slant
)
用 slant
參數(shù)指定的傾斜值來(lái)傾斜
font_index
參數(shù)指定的字體。
Note: 此函數(shù)僅在 PHP 編譯時(shí)指定了 --with-t1lib[=DIR] 時(shí)可用。
參數(shù)
font_index
A font resource, returned by imagepsloadfont().
slant
Slant level.
返回值
成功時(shí)返回 TRUE
, 或者在失敗時(shí)返回 FALSE
。
范例
Example #1 imagepsslantfont() example
<?php
// Load a .pfb font file
$font = imagepsloadfont('./px3l.pfb');
// Slant the font by 22.5
imagepsslantfont($font, 22.5);
// Do any operations with the font here
// Free the font from memory
imagepsfreefont($font);
?>
注釋
Note: 此函數(shù)僅在 PHP 編譯時(shí)指定了 --with-t1lib[=DIR] 時(shí)可用。