excel if最多嵌套多少層舉例子說明
1126
2023-11-13
(PHP 4, PHP 5)
imagepsloadfont — 從文件中加載一個 PostScript Type 1 字體
$filename
)
從文件 filename
中加載一個 PostScript Type 1 字體。
filename
Postscript 字體文件的路徑。
如果一切正常,將返回一個合法的字體索引以備使用。否則返回
FALSE
并顯示一條信息說明哪里錯了,但不能直接讀取此信息,因為輸出格式是圖像。
Example #1 imagepsloadfont() 例子
<?php
// Create a new image instance
$im = imagecreatetruecolor(350, 45);
// Allocate colors and fill the background
$black = imagecolorallocate($im, 0, 0, 0);
$white = imagecolorallocate($im, 255, 255, 255);
imagefilledrectangle($im, 0, 0, 349, 44, $white);
// Load a font, write to the image and free the font from memory
$font = imagepsloadfont("bchbi.pfb");
imagepstext($im, "Testing... It worked!", $font, 32, $white, $black, 32, 32);
imagepsfreefont($font);
// Output the image
header('Content-type: image/png');
imagepng($im);
imagedestroy($im);
?>
Note: 此函數僅在 PHP 編譯時指定了 --with-t1lib[=DIR] 時可用。
imagepsfreefont() - 釋放一個 PostScript Type 1 字體所占用的內存
#免責聲明#
本站[綠夏技術導航]提供的一切軟件、教程和內容信息僅限用于學習和研究目的;不得將上述內容用于商業或者非法用途,否則,一切后果請用戶自負。本站信息來自網絡收集整理,版權爭議與本站無關。您必須在下載后的24個小時之內,從您的電腦或手機中徹底刪除上述內容。如果您喜歡該程序或內容,請支持正版,購買注冊,得到更好的正版服務。我們非常重視版權問題,如有侵權請郵件[admin@lxwl520.com]與我們聯系進行刪除處理。敬請諒解!