Header("Content-type: image/png");
$height = 1200;
$width = 560;
$im = ImageCreate($width, $height);
$bck = ImageColorAllocate($im, 0xff, 0xff, 0xff);
$blue = ImageColorAllocate($im, 0x00, 0x00, 0x99);
$red = ImageColorAllocate($im, 0x99, 0x00, 0x00);
$silv = ImageColorAllocate($im, 0x61, 0x61, 0x61);
$grey = imagecolorallocate($im, 0x51, 0x51, 0x51);
$black =imagecolorallocate($im, 0x00, 0x00, 0x00);
$text = 'ABCDEFGHI';
$font = 'minipics.ttf';
imagettftext($im, 50, 0, 25, 100, $red, $font, $text);
$text = 'ABCDEFGHI';
$font = 'Cooper-Heavy.ttf';
imagettftext($im, 25, 0, 25, 125, $silv, $font, $text);
$text = 'JKLMNOPQR';
$font = 'minipics.ttf';
imagettftext($im, 50, 0, 25, 200, $red, $font, $text);
$text = 'JKLMNOPQR';
$font = 'Cooper-Heavy.ttf';
imagettftext($im, 25, 0, 25, 225, $silv, $font, $text);
$text = 'STUVWXYZ';
$font = 'minipics.ttf';
imagettftext($im, 50, 0, 25, 300, $red, $font, $text);
$text = 'STUVWXYZ';
$font = 'Cooper-Heavy.ttf';
imagettftext($im, 25, 0, 25, 325, $silv, $font, $text);
$text = 'abcdefghi';
$font = 'minipics.ttf';
imagettftext($im, 50, 0, 25, 400, $red, $font, $text);
$text = 'abcdefghi';
$font = 'Cooper-Heavy.ttf';
imagettftext($im, 25, 0, 25, 425, $silv, $font, $text);
$text = 'jklmnopqr';
$font = 'minipics.ttf';
imagettftext($im, 50, 0, 25, 500, $red, $font, $text);
$text = 'jklmnopqr';
$font = 'Cooper-Heavy.ttf';
imagettftext($im, 25, 0, 25, 525, $silv, $font, $text);
$text = 'stuvwxyz';
$font = 'minipics.ttf';
imagettftext($im, 50, 0, 25, 600, $red, $font, $text);
$text = 'stuvwxyz';
$font = 'Cooper-Heavy.ttf';
imagettftext($im, 25, 0, 25, 625, $silv, $font, $text);
$text = '1234567890';
$font = 'minipics.ttf';
imagettftext($im, 40, 0, 25, 700, $red, $font, $text);
$text = '1234567890';
$font = 'Cooper-Heavy.ttf';
imagettftext($im, 25, 0, 25, 725, $silv, $font, $text);
$text = <<!@#$%^&*()
EOT;
$font = 'minipics.ttf';
imagettftext($im, 40, 0, 25, 800, $red, $font, $text);
$text = <<!@#$%^&*()
EOT;
$font = 'Cooper-Heavy.ttf';
imagettftext($im, 25, 0, 25, 825, $silv, $font, $text);
$text = <<[]{},.<>
EOT;
$font = 'minipics.ttf';
imagettftext($im, 40, 0, 25, 900, $red, $font, $text);
$text = <<[]{},.<>
EOT;
$font = 'Cooper-Heavy.ttf';
imagettftext($im, 25, 0, 25, 925, $silv, $font, $text);
$text = <<;':"/\|`~?
EOT;
$font = 'minipics.ttf';
imagettftext($im, 40, 0, 25, 1000, $red, $font, $text);
$text = <<;':"/\|`~?
EOT;
$font = 'Cooper-Heavy.ttf';
imagettftext($im, 25, 0, 25, 1028, $silv, $font, $text);
$text = 'minipics.ttf';
$font = 'Cooper-Heavy.ttf';
imagettftext($im, 20, 0, 300, 1060, $silv, $font, $text);
Imagepng($im);
imagedestroy($im);
?>
Fonts used for this page:
minipics.ttf
Cooper-Heavy.ttf