Re: italic, bold and underline with GD ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



David wrote:
Can we use some function with GD to make text italic, bold and/or underline?

http://php.net/imagettftext

I see we can change size and font, but not style

it's not possible in PHP?

Thanks in advance
David

I'm not familiar with GD, but as every good font has different versions for bold, italic and so on, you might use those versions with separate font files.

And since underlining is just a simple line (don't know how this works in GD, I've done this in FPDF) I would just draw a line from the beginning of the word to the end ... if it is possible in GD to get the current "cursor" position before and after inserting text.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux