Re: [GD-DEVEL] Aligning the mulitline text?

[email protected] (Pierre)
Newsgroups php.gd.devel
Message-ID <[email protected]>
On 3/20/07, Andrei Stebakov <[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.