imagepsslantfont()
(PHP 4, PHP 5)
倾斜某字体
说明
imagepsslantfont(resource $font_index,float $slant): bool
用$slant参数指定的倾斜值来倾斜$font_index参数指定的字体。
Note:此函数仅在 PHP编译时指定了--with-t1lib[=DIR]时可用。
参数
- $font_index
A font resource, returned by imagepsloadfont().
- $slant
Slant level.
返回值
成功时返回TRUE,或者在失败时返回FALSE。
范例
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:此函数仅在 PHP编译时指定了--with-t1lib[=DIR]时可用。
