drawing text bold/italic with a single true type font file?

GD and GD2 are useful libraries for creating graphics on-the-fly. Discuss your PHP GD and GD2 scripts here.

Moderators: onion2k, General Moderators

Post Reply
mr00047
Forum Newbie
Posts: 14
Joined: Fri May 12, 2006 1:01 pm

drawing text bold/italic with a single true type font file?

Post by mr00047 »

Hello

I have a true type font file bahaus.ttf. this single file can represent bold/italic things. i have the style description(bold/italic) for font coming from mysql database. I want to draw the text over an image using imagettftext according to the style description. but the problem i am facing is that, i cant draw the text like the style description unless i load different different font file such as for italic bahaus_italic.ttf,bahaus_bold_italic.ttf etc. is there a way so that i can load a single font file and and still i can tell how the font should appear like the bold/italic way?

Any idea?

Thank you for reading this.
Post Reply