FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free 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 ...
Related topics
best booke in your mind
Leroy the redneck
The Average Age Here?
what is ur favorite sitcom?
The downfall of american society
My list of musics
A soldier's rant
Retarded leaders
What's great about your country?
can we use TTF fonts and if so whats the path?
Russia sort of invades Georgia
Russia Invades Georgia
Georgia asking US for armaments again
Batch ttf to png converter
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

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