Page 1 of 1
Using GD to write bold and/or italic text
Posted: Tue Oct 04, 2005 3:06 am
by starsol
I'm using
imagettftext to write text on top of an image - and it all works well for normally formatted text. Unfortunately I can't seem to find how to bold or italicse this text - can anyone give me a pointer as to how to accomplish this?
Posted: Tue Oct 04, 2005 6:21 am
by Jenk
You need to have the bold or italic font
file that is associated with the font.

Posted: Tue Oct 04, 2005 11:26 am
by starsol
Thanks Jenk

- to clarify - if I for example want to use
Arial.ttf, I would need to find something along the lines of
ArialItalic.ttf and use that instead?
Posted: Tue Oct 04, 2005 11:27 am
by feyd
yes.