Hi,
I need to do dynamic text rendering using the GD library, without hinting (for smoother antialiasing).
A comment at the end of the PHP imagefttext() doc explains how to do this:
If you're interested in turning off FreeType hinting, search for the following line in the gd source (gdft.c):
err = FT_Load_Glyph (face, glyph_index, FT_LOAD_DEFAULT);
and replace it with
err = FT_Load_Glyph (face, glyph_index, FT_LOAD_NO_HINTING);
Recompile GD, and vo�la: beauteous antialiasing.
I managed to make the change and recompile the GD .dll using the source code from the GD project, but it wound up not being very compatible with PHP (they don't recommend using it anyways) -- specifically the imageftbbox() function was not present, which I need.
So I downloaded the PHP source code to try to compile php_gd2.dll from the original source code, but after two hours there will still just libraries that were not found, that needed to be compiled, that wouldn't compile, etc... and I think it's impossible for me.
Does anyone have any advice on how to do this, or even better, happen to have a version of the GD .dll already compiled with this change, or is able to easily do it?
I don't need to compile all of PHP, just this one library!
Thanks
Michael