(PHP 4, PHP 5)
imagepsextendfont — 扩充或精简字体
$font_index
, float $extend
)
扩充或精简某字体(font_index
)。如果
extend
参数的值小于一则是精简该字体。
成功时返回 TRUE
, 或者在失败时返回 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: 此函数仅在 PHP 编译时指定了 --with-t1lib[=DIR] 时可用。
admin at studio-gepard dot pl (2009-12-03 02:17:57)
It is impossible to use this function with a TrueType (.ttf) fonts.You need to convert font to PostScript Type1 (.pfb) on your own (google - there are free converters too)
Pascal@TeamX (2003-05-21 03:28:28)