[PHP-DEV] PHP 4.0 Bug #10548 Updated: function ImageTTFText always get wrong chinese words from TTF ...

2001-04-30 Thread cchsieh

ID: 10548
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: GD related
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: 

690c690
<   ch = (ch * 256) + **next;
---
>   ch = (ch * 256) + ((**next) & 255);
705c705,709
<   *advance = glyph->metrics.advance;
---
>   
> if ( !font->have_char_map_Unicode && (ch < 161) ) 
>   *advance = glyph->metrics.advance / 2;
>   else
>   *advance = glyph->metrics.advance;


Script to test:



Previous Comments:
---

[2001-04-30 08:26:58] [EMAIL PROTECTED]
About Image function - ImageTTFText: always get wrong chinese words from TTF. 

To correct the problem: 

690c690
<   ch = (ch * 256) + **next;
---
>   ch = (ch * 256) + ((**next) & 255);
705c705,709
<   *advance = glyph->metrics.advance;
---
>   
> if ( !font->have_char_map_Unicode && (ch < 161) ) 
>   *advance = glyph->metrics.advance / 2;
>   else
>   *advance = glyph->metrics.advance;


Script to test:



---

[2001-04-29 06:00:49] [EMAIL PROTECTED]
About Image function - ImageTTFText: always get wrong chinese words from TTF. 

To correct the problem: 

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


Script to test:


---


Full Bug description available at: http://bugs.php.net/?id=10548


-- 
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]




[PHP-DEV] PHP 4.0 Bug #10548 Updated: function ImageTTFText always get wrong chinese words from TTF ...

2001-04-30 Thread cchsieh

ID: 10548
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: GD related
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: 

690c690
<   ch = (ch * 256) + **next;
---
>   ch = (ch * 256) + ((**next) & 255);
705c705,709
<   *advance = glyph->metrics.advance;
---
>   
> if ( !font->have_char_map_Unicode && (ch < 161) ) 
>   *advance = glyph->metrics.advance / 2;
>   else
>   *advance = glyph->metrics.advance;


Script to test:



Previous Comments:
---

[2001-04-29 06:00:49] [EMAIL PROTECTED]
About Image function - ImageTTFText: always get wrong chinese words from TTF. 

To correct the problem: 

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


Script to test:


---


Full Bug description available at: http://bugs.php.net/?id=10548


-- 
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]




[PHP-DEV] Bug #10548: function ImageTTFText always get wrong chinese words from TTF ...

2001-04-29 Thread cchsieh

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 
690c690 
< ch = (ch * 256) + **next; 
--- 
> ch = (ch * 256) + ((**next) & 255);


Script to test:



-- 
Edit Bug report at: http://bugs.php.net/?id=10548&edit=1



-- 
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]