Extend or condense a font in PHP

Description

The following code shows how to extend or condense a font.

Example


<?php/*from   w  w  w  .j  ava  2 s  .com*/
// 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);
?>




















Home »
  PHP Tutorial »
    Image »




Color
Create
Font
Operation
Shape
Text