From:             [EMAIL PROTECTED]
Operating system: FreeBSD4
PHP version:      4.0.4pl1
PHP Bug Type:     GD related
Bug description:  function ImageTTFText always get wrong chinese words from TTF ...

About Image function - ImageTTFText: always get wrong chinese words from TTF. 

To correct the problem: 

$ diff gdttf.c.orig gdttf.c 
< ch = (ch * 256) + **next; 
> ch = (ch * 256) + ((**next) & 255);

Script to test:

// Create the image
$png = ImageCreate(200,200);
$bg = ImageColorAllocate($png,0,0,0);
$tx = ImageColorAllocate($png,255,128,128);

// Set Chinese words ("Chinese language" in Chinese Big5)
// Chinese test (need mingli.ttf from MS-Win Chinese ver)

// Send the image
header("content-type: image/png\n\n");

// Destroy image


Edit Bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to