Quote:
|
Originally Posted by yoda
instead of imagestring use imagettftext
example:
Code:
imagettftext($image_out, 9, 0, 10, 36, $color, $font, $player['adventurer']);
you also need to upload the font file *.ttf and provide the path
example:
Code:
$font = 'font/arial.ttf';
|
I've tried this fix, but it actually breaks my script! I get no text at all on the background image.
Does the
imagettftext string parameters need to be defined in exactly the order you described, and/or does the
$font definition need to be in a particular place?
I'm no newbie to coding, although PHP is new to me as of a few months back. I'm an expert tweaker, so this breakage is dumbfounding me...everything looks right. I uploaded my fonts and everything.
