GD Library Problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
vilvendhan
Forum Newbie
Posts: 5
Joined: Thu Apr 19, 2007 6:21 am

GD Library Problem

Post by vilvendhan »

Using GD library how to make the text as bold,italics, underline.
I have used imagettftext ( resource $image, float $size, float $angle, int $x, int $y, int $color, string $fontfile, string $text ) this function for write text to the image. I could not make bold.

Please any one help me.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

You need to use a bold version of the font you're using.
vilvendhan
Forum Newbie
Posts: 5
Joined: Thu Apr 19, 2007 6:21 am

GD Library Problem

Post by vilvendhan »

Thanks for your help.

I used bold version of font. It is working now. Same as Italics.

Underline only problem.
Post Reply