Italic, Bold, Underline in GD

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
Saint
Forum Newbie
Posts: 4
Joined: Wed Sep 10, 2003 10:55 pm
Location: CO, USA
Contact:

Italic, Bold, Underline in GD

Post by Saint »

Is there a way with the font functions in GD (using a custom ttf font) to make text bold, italic, or underlined? I haven't seen this anywhere, so I assume that it's not possible, but I have been wrong before (more than i like to admit, lol). Thanks for the help.
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

I've seen this somewhere, but after sitting trying to remember I come up with nothing. This is a big "I think...", but investigate further.

For bold, 2 or 3 layers of the same text was placed on top of the original texxt, slightly moving each 1px left and right respectly. Underline using the same effect or image drawing function...

Italics were made by slightly rotate each letter.
Post Reply