imagepsfreefont

(PHP 4, PHP 5)
Free memory used by a PostScript Type 1 font
bool imagepsfreefont ( resource $font_index )

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

Parameters:
font_index

A font resource, returned by imagepsloadfont().

Returns:

Returns TRUE on success or FALSE on failure.

Changelog:
7.0.0

T1Lib support was removed from PHP, thrus removing this function.

Notes:
This function is only available if PHP is compiled using --with-t1lib[=DIR] .
Examples:
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);
?>

See also:

imagepsloadfont() -

doc_php
2016-02-24 15:59:50
Comments
Leave a Comment

Please login to continue.