|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-01-03 17:39 UTC] frederic dot lamsens at rug dot ac dot be
[2001-06-03 06:47 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 22:00:02 2025 UTC |
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 ...