FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

I need georgia.ttf .... How can I do it ?

 


macgyver
Dear All,
It seem that my php script need .... "georgia.ttf"
It works on my PC ......

How can I uploaded that georgia.ttf or other font to the server ?
WOuld it be possible ?

Thanks ......in Advance
Bondings
Normally the font of the computer user is used. But if you need it for imagemagick or another image program (gd), then you might need to search for it on google or on the support forum of the specific program. You should give us at least a few more details about it, like which php-program you use.
macgyver
Bondings wrote:
Normally the font of the computer user is used. But if you need it for imagemagick or another image program (gd), then you might need to search for it on google or on the support forum of the specific program. You should give us at least a few more details about it, like which php-program you use.


Hi Bonding ... thanks for the answer ....
Below is the script I am using ....

==========================

<?php

header("Content-type: image/png");

$im = imagecreate(240, 30);

$white = imagecolorallocate($im, 255, 255, 255);
$grey = imagecolorallocate($im, 120, 120, 120);
$black = imagecolorallocate($im, 0, 0, 0);
$blue = imagecolorallocate($im, 0, 0, 128);

$text ="Mac Gyver";

$font = 'georgia.ttf';

imagettftext($im, 12, 0, 4, 21, $grey, $font, $text);

imagettftext($im, 12, 0, 2, 20, $blue, $font, $text);

imagepng($im);
imagedestroy($im);
?>

==========================

Thanks fot your answer ...
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.