Page 1 of 1

Italic, Bold, Underline in GD

Posted: Wed Oct 15, 2003 7:42 pm
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.

Posted: Thu Oct 16, 2003 6:14 am
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.