0

Hi All,

I need to draw image having text using gd library on basis of font selection. User has an option to make text bold/italic. I am using imagettftext to write text on the image.

how can we draw having bold/italic text or is there a way to detect whether selected font supports bold/italic feature.

Please let me know on this.

Thanks in advance

3
Contributors
3
Replies
4
Views
8 Years
Discussion Span
Last Post by sunilsinha
0

Usually when you have bold/italic text there will be separate ttf files for the standard font, the bold font and the italic font so just load those as separate fonts and write text using them.

0

Im not 100% sure but when you are using the GD Library to create an image im sure there is an option to "paste" the text on the image and possibly format when required. Possibly check the GD Library at php.net?

0

Thanks for your reply.

Usually when you have bold/italic text there will be separate ttf files for the standard font, the bold font and the italic font so just load those as separate fonts and write text using them.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.