imagestring($im, 5, $x, $y, $text, $black); and this worked. The only problem is that the fontsize won't get any bigger than this 5 which still is almost unreadable.
So I searched the internet for some solutions. The solutions I found are the functions imagettftext() and imagefttext() which have a fontfile parameter.
My code for this is
Code: Select all
$font = 'arial.ttf';
imagefttext($im, 20, 0, 11, 21, $white, $font, $text);