Pages: 123

  2008-07-21 05:08:42

andHa
» FTalkWhiz
FTalk Level: zero
3386
0
1969-12-31

Re: [hr][hr] [align=center][color=grey][b]Customize Your Own Font Type[/b] Credit : andHa[/color][/align] [hr][hr] [table][tr][td][b]Description[/b][hr][/td][/tr][/table] Sedikit penjelasan mengenai scr

[b]areyaa[/b] silahkan bos. nama nya udah di share, b'arti udah bebas buat d pake :eh: [b]dani55[/b] bisa bos. edit script php nya. liat bagian yg gw bold d bawah ini [spoiler] <?php /* Customized Font Type || By si-andha Visit http://si-andha.web44.net */ class andhaCostumizedText { var $font = 'fonts/fontname.ttf'; [b]function andhaCostumizedText($width='300',$height='90',$text) {[/b] $font_size = 30; $image = @imagecreate($width, $height) or die('Text is missing'); $background_color = imagecolorallocate($image, 255, 255, 255); $text_color = imagecolorallocate($image, 0, 0, 0); $textbox = imagettfbbox($font_size, 0, $this->font, $text); $x = ($width - $textbox[4])/2; $y = ($height - $textbox[5])/2; imagettftext($image, $font_size, 0, $x, $y, $text_color, $this->font , $text); imagejpeg($image); } } [b]$width = isset($_GET['width']) ? $_GET['width'] : '300'; $height = isset($_GET['height']) ? $_GET['height'] : '90';[/b] $text = isset($_GET['text']) ? $_GET['text'] : ''; header('Content-Type: image/jpeg'); $andha = new andhaCostumizedText($width,$height,$text); ?> [/spoiler] size nya bisa lu sesuaikan ndiri. dan buat nampilin nya, pake kode kyk contoh d bawah ini. [quote]http://si-andha.web44.net/customized_text.php?text=Text[/quote] [b]dj_afran[/b] kyk nya nama folder buat font lu kurang huruf [b]s[/b] bos. itu juga kalo gw ga salah.

Pages: 123

Board footer

© 2025 F Talk

Current time is 20:09

[ 12 queries - 0.006 second ]
Privacy Policy