Free memory used by a PostScript Type 1 font in PHP

Description

The following code shows how to free memory used by a PostScript Type 1 font.

Example


<?php/* ww  w .  jav  a 2 s  .  c  o m*/
// Load a .pfb font file
$font = imagepsloadfont('./bchbi.pfb');

// Do any operations with the font here

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




















Home »
  PHP Tutorial »
    Image »




Color
Create
Font
Operation
Shape
Text