i've just installed ubuntu for something to do but i'm having a few problems getting my webserver up and running. apache/php5 and the gd library have all installed just fine, phpinfo shows gd to be enabled - it all looks good.....
but my first problem is with GD and true type fonts. i just can't get it to work. i've got the font in the same directory as the script so i would have thought nothing can go wrong. but it aint working.....
just gives
next is mod_rewrite. i used to use abyss webserver on windows and i believe that uses regular expressions. this is my working code from abyss.....
/lastfm/(.+)/(.+)/(.+)/(.+)/(.+)/(.+)/(.+)/sig.png
/lastfm/main.php?userid=$1&type=$2&font=$3&width=$4&row=$5&tc=$6&bg=$7
is that first line proper regexp that mod_rewrite can use or not? i'm completely clueless....
but my first problem is with GD and true type fonts. i just can't get it to work. i've got the font in the same directory as the script so i would have thought nothing can go wrong. but it aint working.....

Code:
$fontsize = 10;
$font = 'arialuni.ttf';
Imagettftext($im, $fontsize, 0, 3, 10, $tc, $font, $title);
just gives
Code:
Warning: imagettftext() [function.imagettftext]: Could not find/open font in
next is mod_rewrite. i used to use abyss webserver on windows and i believe that uses regular expressions. this is my working code from abyss.....
/lastfm/(.+)/(.+)/(.+)/(.+)/(.+)/(.+)/(.+)/sig.png
/lastfm/main.php?userid=$1&type=$2&font=$3&width=$4&row=$5&tc=$6&bg=$7
is that first line proper regexp that mod_rewrite can use or not? i'm completely clueless....
