Re: [GD-DEVEL] Aligning the mulitline text?
| From: | Pierre | Date: | Tue, 20 Mar 2007 17:27:44 +0000 |
| Subject: | Re: [GD-DEVEL] Aligning the mulitline text? | ||
| References: | 1 | Groups: | php.gd.devel |
| Request: | Send a blank email to php-gd-devel+get-151@lists.php.net to get a copy of this message | ||
On 3/20/07, Andrei Stebakov <lispercat@gmail.com> wrote:
Is there a support in libgd for multiline text alignment?No, there is yet no support for advanced text layouts.
For instance when I put a Newline character in the string by default I see that it's all left alligned. Let's say I want the two lines of my text to be center-aligned? How can I do it?I'm working on a new GD addition which uses pango. It does what you are looking for (and much more). The early result of my work is already in cvs in the gd-pango module: http://cvs.php.net/viewvc.cgi/gd/gd-pango/ Some examples: http://blog.thepimp.net/misc/pango/ http://blog.thepimp.net/misc/russian.png (from http://blog.thepimp.net/misc/russian.txt) All codes to generate these examples are in CVS as well (with other languages). Regards, --Pierre