Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

Use TrueType Fonts in php

Sun Oct 26, 2008 11:07 pm

Code:
<?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);
?>




Post a reply
  Related Posts  to : Use TrueType Fonts in php
 Fonts in java     -  
 Using two different fonts in the same webpage     -  

Topic Tags

PHP Graphics