psychiccyberfreak 0 Report post Posted November 8, 2006 hey, I'm making a PHP script that generates an image with random text in it (to prevent spambots), and I need a TTF font to use it, but I'm not sure which ones are on the server. here's the code I need it for if it helps, I'm a linux guy but don't know much about where it looks for it: <?php$font = ".ttf"; // This is the font I need$font_size = 10;$angle = 0;$box = imagettfbbox($font_size, $angle, $font, $_SESSION['rand_code']);$x = (int)($imgX - $box[4]) / 2;$y = (int)($imgY - $box[5]) / 2;imagettftext($image, $font_size, $angle, $x, $y, $text_col, $font, $_SESSION['rand_code']);//then prints out the image?> Oh yeah, and by the way, the live support on Xisto - Web Hosting is terrible. Share this post Link to post Share on other sites
Saint_Michael 3 Report post Posted November 8, 2006 Why don't you use the standard fonts Arial, Helvetica, sans-serif combo. But I do believe you have to upload the fonts yourself to your account in order to use them that way. I don't think hosting accounts come with a standard font package except for the 3 i just mention. Share this post Link to post Share on other sites
psychiccyberfreak 0 Report post Posted November 8, 2006 yeah when I plug those in I still get the same errors. Share this post Link to post Share on other sites
ghostrider 0 Report post Posted November 8, 2006 you might be able to check using the function phpinfo(). It displays a whole list of settings and options with PHP. Its really really useful. Share this post Link to post Share on other sites
psychiccyberfreak 0 Report post Posted November 8, 2006 hmmm... I can look that up on my joomla backend, but I don't think it will do much. Mabie I should check the php manual... Share this post Link to post Share on other sites
CrazyRob 0 Report post Posted November 14, 2006 Try PHPInfo it may answer your question.. although i dont recall any thing on php info telling you what fonts you have on your server. Also you probably knew this already, but to have an image verification box the server requires GD installed on it. Share this post Link to post Share on other sites
OpaQue 15 Report post Posted November 23, 2006 Oh yeah, and by the way, the live support on Xisto - Web Hosting is terrible. It depends on what type of questions you have for the support techs and how you present them. Xisto - Web Hosting provides 3 channels for Support. Helpdesk, Chat and Forum. Helpdesk is used for technical errors and server related queries.Chat is used for Cpanel and website related problems. However, one cannot expect a network admin to know all the programming languages used on the web.As far as Forums as concerned, its best for website related (graphics, designing, html, programming...) queriesThanks Share this post Link to post Share on other sites