Re: Font Effects (Oblique, 'Bold', etc)
| From: | Jason Young | Date: | Mon, 17 Aug 2009 15:56:21 +0000 |
| Subject: | Re: Font Effects (Oblique, 'Bold', etc) | ||
| References: | 1 | Groups: | php.gd.devel |
| Request: | Send a blank email to php-gd-devel+get-592@lists.php.net to get a copy of this message | ||
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.
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.
Thanks for any help and attention you can give this. :)
-Jason
Jason Young wrote:
Hello all, If I remember correctly, GD simply passes through most (if not all) of its text handling to FreeType. I also know that FreeType can't magically italicize text, but can slant (oblique) it. Does GD have any interface to tell FreeType to perform this operation (imageFTtext ?) Similarly, are there any good practices to make text bold when you don't actually have a Bold TTF (printing text twice, etc)? Thanks for any insight you can provide. :) -Jason