Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php]gd i fonty
wrcnitro
post
Post #1





Grupa: Zarejestrowani
Postów: 53
Pomógł: 0
Dołączył: 4.03.2006

Ostrzeżenie: (10%)
X----


A wiec tak (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif) dlaczego nie wczytuje mi fontow

  1. <?php
  2. ImageTTFText($obraz, 28, 5, 30, 43, $kolor['1'], "nerwus.ttf", "test");
  3. ?>


dodam ze zmienilem server z apache 2.2 win na 2.0 linuxa (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif) czy moze php.ini jest jakas sancja dotyczaca wczytywania fontow (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif) P
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
wrcnitro
post
Post #2





Grupa: Zarejestrowani
Postów: 53
Pomógł: 0
Dołączył: 4.03.2006

Ostrzeżenie: (10%)
X----


  1. <?php
  2. include('potw_enigme.php');
  3. header("Content-type: image/png");
  4. putenv('GDFONTPATH=fonty/');
  5. $czcionka = 'nerwus.ttf';
  6. $obraz = ImageCreate(200, 50);
  7. $kolor['1'] = ImageColorAllocate($obraz, 255, 255, 255);
  8. $kolor['2'] = ImageColorAllocate($obraz, 0, 0, 0);
  9. $kolor['3'] = ImageColorAllocate($obraz, 0, 255, 0);
  10. ImageFilledRectangle($obraz, 0, 0, 300, 50, $kolor['2']);
  11. imagearc($obraz, 100, 100, 150, 150, 0, 360, $kolor['3']);
  12. imagearc($obraz, 10, 10, 100, 30, 0, 180, $kolor['3']);
  13. imagearc($obraz, 100, 20, 200, 50, 0, 90, $kolor['3']);
  14. imagearc($obraz, 0, 25, 400, 1, 0, 90, $kolor['3']);
  15. imagearc($obraz, 0, 10, 400, 1, 0, 90, $kolor['3']);
  16. imagearc($obraz, 0, 40, 400, 1, 0, 90, $kolor['3']);
  17. imagearc($obraz, 20, 0, 1, 100, 0, 180, $kolor['3']);
  18. imagearc($obraz, 100, 0, 1, 100, 0, 180, $kolor['3']);
  19. imagearc($obraz, 180, 0, 1, 100, 0, 180, $kolor['3']);
  20. ImageTTFText($obraz, 28, 5, 30, 43, $kolor['1'], $czcionka, $_SESSION['pot']);
  21. ImagePNG($obraz);
  22. ImageDestroy($obraz);
  23. ?>



ale nadal owy skryt nie dziala :PPP od kiedy zmienilem server (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif) P w php jest gd2.0 hmmm nie jestem pewnien ale wydawalo mi sie ze putenv nie dziala w safe mode (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif) P
Go to the top of the page
+Quote Post

Posty w temacie
- wrcnitro   [php]gd i fonty   12.02.2008, 19:40:26
- - Lejto   bo nie określiłeś... zobacz tak: [PHP] pobierz, p...   12.02.2008, 19:45:22
- - wrcnitro   no tok ale mam włączone safe mode   12.02.2008, 21:01:11
- - Lejto   a w czym to przeszkadza?   13.02.2008, 17:42:08
- - wrcnitro   [PHP] pobierz, plaintext <?phpinclude('potw...   13.02.2008, 19:46:52


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 4.10.2025 - 03:16