Use TrueType Fonts : TrueType Fonts « Graphics Image « PHP






Use TrueType Fonts

<?php
     header ("Content-type: image/png");
   
     $im = ImageCreate (300, 40);
     $grey = ImageColorAllocate ($im, 230, 230, 230);
     $black = ImageColorAllocate ($im, 0, 0, 0);
   
     ImageTTFText($im, 20, 0, 10, 25, $black, "ARIALBD.TTF", "TrueType Fonts!");
     ImagePng ($im);
     ImageDestroy ($im);
?>
           
       








Related examples in the same category

1.The TrueType Font Bounding Box