Re: [GD-DEVEL] Re: Font Effects (Oblique, 'Bold', etc)

From: Date: Mon, 17 Aug 2009 17:23:06 +0000
Subject: Re: [GD-DEVEL] Re: Font Effects (Oblique, 'Bold', etc)
References: 1 2 3  Groups: php.gd.devel 
Request: Send a blank email to php-gd-devel+get-594@lists.php.net to get a copy of this message
Thanks Takeshi, Actually yes, I had contacted the developer who then placed a 5.3 version on the site. I also found the reason for the segfault: ImageFTText (gdImageStringFTEx) is what he's doing all of his operations on.. anytime I use ImageTTFText, it segfaults. Seems odd to me, since it's just a wrapper to gdImageStringFTEx, but it is what it is. Unfortunately, the developer also says he has no time to look into this. I personally think this patch is of great value to GD, and I think with a little bit of cleanup (and hopefully a brief look into this issue), could/should be added to the base code. -Jason Takeshi Abe wrote:
Hi, On Mon, 17 Aug 2009 11:56:21 -0400, Jason Young <jmy@morgontech.com> wrote:
Just to follow up on my own question, I did find the following page: http://greyworld.net/en/projects/p/php-gd-better-freetype2/ He has made modifications to GD to expose more of FreeType's functionality. Unfortunately, hist last 'supported' PHP version is 5.2.9, and I get a segfault when using this with 5.3.
a recent update of the above page includes 'php-gd-ft2-5.3.0.diff.gz (2009-08-17)'.
Pierre or Takeshi, maybe you can take a look at this and make it part of GD? (Or at least help make it work?:P) I'm not a C programmer, but I did do enough digging to know it is the "render_mode |= strex->loadFlags;" change in gdft.c that's causing the segfaults.
While now I'm not sure how many things render_mode affects, it would be appreciated to report it to bugs.libgd.org for further discussion. Cheers, -- Takeshi Abe


« previous php.gd.devel (#594) next »