Date: 01/03/01
- Next message: frederic.lamsens <email protected>: "[PHP-DEV] PHP 4.0 Bug #8544 Updated: ImageTTFText"
- Previous message: jmoore <email protected>: "[PHP-DEV] PHP 4.0 Bug #7672 Updated: allow_call_time_pass_reference is depreciated, but required by..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: frederic.lamsens <email protected>
Operating system: Madrake Linux 7.2
PHP version: 4.0.4
PHP Bug Type: GD related
Bug description: ImageTTFText
System:
Linux 2.2.17-21mdksecure #1 SMP Thu Oct 5
Asus Dual PIII 450 Mhz
NVidia Riva128
256 Mb SDRam
PHP Configuration:
./configure --with-mysql
--with-apxs=/usr/local/apache/bin/apxs
--with-ttf --with-gd --with-ldap
GD:
GD Version 1.8.1 (static)
Freetype Version 1.3
FreeType Support enabled
FreeType Linkage with TTF library
PNG Support enabled
When I compiled PHP and used ImageTTFText, the result was not what I expected. Although I can see my input string, the text was shown at an angle of 270 degrees and mirrored. So 'The' looks like '|-' and the 2 next charachters are below the '|-'.
I have been able to solve the problem by changing the php code and recompile the whole thing.
Filename: gdttf.c (located in ext\gd)
Line: around 743
Original code:
#if HAVE_LIBGD13
pixel = &im->pixels[y3][x3];
#else
pixel = &im->pixels[x3][y3];
#endif
New code:
pixel = &im->pixels[y3][x3];
By reversing the arguments, the image is now correct.
I hope this information helps ...
-- Edit Bug report at: http://bugs.php.net/?id=8544&edit=1-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: frederic.lamsens <email protected>: "[PHP-DEV] PHP 4.0 Bug #8544 Updated: ImageTTFText"
- Previous message: jmoore <email protected>: "[PHP-DEV] PHP 4.0 Bug #7672 Updated: allow_call_time_pass_reference is depreciated, but required by..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

