imagepsfreefont

(PHP 4, PHP 5)

imagepsfreefontFree memory used by a PostScript Type 1 font

說明

bool imagepsfreefont ( resource $font_index )

imagepsfreefont() frees memory used by a PostScript Type 1 font.

參數

font_index

A font resource, returned by imagepsloadfont().

回傳值

如果成功則回傳 TRUE,失敗則回傳 FALSE

範例

Example #1 imagepsfreefont() example

<?php
// Load a .pfb font file
$font imagepsloadfont('./bchbi.pfb');

// Do any operations with the font here

// Free the font from memory
imagepsfreefont($font);
?>

註釋

Note: 本函式僅在 PHP 編譯時指定了 --enable-t1lib 時可用。

參見

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top