
<?php ImageTTFText($obraz, 28, 5, 30, 43, $kolor['1'], "nerwus.ttf", "test"); ?>
dodam ze zmienilem server z apache 2.2 win na 2.0 linuxa



<?php putenv('GDFONTPATH=Fonty/'); //Fonty to nazwa katalogu z fontami domyślnie na Windowsie C:WINDOWSFonts $czcionka = 'arial'; ImageTTFText($ob, $rozmiar_tytulu, 0, $tytul_x, $tytul_y, $kolor_tekstu, $czcionka, $tytul); ?>
<?php include('potw_enigme.php'); $czcionka = 'nerwus.ttf'; $obraz = ImageCreate(200, 50); $kolor['1'] = ImageColorAllocate($obraz, 255, 255, 255); $kolor['2'] = ImageColorAllocate($obraz, 0, 0, 0); $kolor['3'] = ImageColorAllocate($obraz, 0, 255, 0); ImageFilledRectangle($obraz, 0, 0, 300, 50, $kolor['2']); imagearc($obraz, 100, 100, 150, 150, 0, 360, $kolor['3']); imagearc($obraz, 10, 10, 100, 30, 0, 180, $kolor['3']); imagearc($obraz, 100, 20, 200, 50, 0, 90, $kolor['3']); imagearc($obraz, 0, 25, 400, 1, 0, 90, $kolor['3']); imagearc($obraz, 0, 10, 400, 1, 0, 90, $kolor['3']); imagearc($obraz, 0, 40, 400, 1, 0, 90, $kolor['3']); imagearc($obraz, 20, 0, 1, 100, 0, 180, $kolor['3']); imagearc($obraz, 100, 0, 1, 100, 0, 180, $kolor['3']); imagearc($obraz, 180, 0, 1, 100, 0, 180, $kolor['3']); ImageTTFText($obraz, 28, 5, 30, 43, $kolor['1'], $czcionka, $_SESSION['pot']); ImagePNG($obraz); ImageDestroy($obraz); ?>