drawing text bold/italic with a single true type font file?
Posted: Fri Nov 09, 2007 12:39 am
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.
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.