| -Pitt- |
Post
#1
|
|
Goście |
Mam problem z wyświetlaniem się tekstu w tokenie z literami.
gdy odwołać się do niego bezpośrednio http://prostezycie.boo.pl/boom/login.php?r= wszystko jest ok, jednak przy odwołaniu się przez domenę skierowaną na folder boom nic się nie pojawia poza błędem do image.php http://buxboom.com/login.php?r= Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /home/accounts_p/prostezycie/public_html/boom/image.php on line 30 Warning: Division by zero in /home/accounts_p/prostezycie/public_html/boom/image.php on line 32 Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /home/accounts_p/prostezycie/public_html/boom/image.php on line 42 Warning: Wrong parameter count for imagestring() in /home/accounts_p/prostezycie/public_html/boom/image.php on line 43 Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /home/accounts_p/prostezycie/public_html/boom/image.php on line 42 Warning: Wrong parameter count for imagestring() in /home/accounts_p/prostezycie/public_html/boom/image.php on line 43 Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /home/accounts_p/prostezycie/public_html/boom/image.php on line 42 I tak dalej.... chodzi o to, że nie znajduję fonta do generacji kodu gdy odwoływać się przez domenę. wycinek kodu php skryptu: (nie śmiać sie - po hiszpańsku) // Creo el color del texto, del texto del fondo y del fondo de la imagen $gris = ImageColorAllocate($im, 247, 247, 247); $colorLetra = ImageColorAllocate($im, 105, 159, 189); $colorLetraFondo = ImageColorAllocate($im, 247, 247, 247); // tipo de letra obtenido en dafont.net $fuente = './image2.ttf'; // Calculo el número de líneas que entran $caja_texto = imagettfbbox($tam_letra, 0, $fuente , $letras); $alto_linea = abs($caja_texto[7]-$caja_texto[1]); $num_lineas = intval($alto_caja / $alto_linea)+1; może trzeba zmienić odniesienie do fonta? Jest on teraz w tym samym folderze co sktypt. Umieszczenie go "wyżej i niżej" nic nie pomaga. Ma ktoś pomysl? |
|
|
|
Pitt [PHP]problem z image.php? 13.10.2008, 19:13:30
Maxik Zamiast ./image2.ttf daj po prostu image2.ttf 13.10.2008, 19:37:36
Pitt Juz tak robilem i nic nie daje poza tym ze nawet n... 13.10.2008, 19:42:47
Pitt i jakieś pomyśły........? 14.10.2008, 07:45:37
thm Kod$fuente = '/boom/image2.ttf'; ? 14.10.2008, 07:58:01
Pitt Nic nie pomaga.... 14.10.2008, 20:22:15 ![]() ![]() |
|
Aktualny czas: 23.12.2025 - 04:09 |