Just FYI

You can solve your vertical issues by investigating the following code, then looking @ this sig
PHP Code:
$output[] = "Threads: $totalthreads";
$output[] = " Posts: $totalposts";
and
PHP Code:
imagettftext($img, $fontsize, 0, $left, (($i * $zeilenabstand) - $zeilenabstand + $top), $text_color, "verdana.ttf", $output[$i]); // LINE2
aka: put your $output in an array - then each line by default is placed on the next line down (the second edit just causes the current line to be output, rather than the whole array) ... then just fiddle with your images size and alignment values ($left and $top) to get it how you want it!

great work again on the TTF font integrating!