ID:               43971
 User updated by:  raven7370 at yahoo dot com
 Reported By:      raven7370 at yahoo dot com
 Status:           Open
 Bug Type:         GD related
 Operating System: Linux Debian
 PHP Version:      5.2.5
 New Comment:

in the reproduce code the angle argument should be 180 such as:
imagefttext($image, 21, 180, 256, 256, $color, 'ARIALNB.TTF', 'Hello
World');

i copied it quickly while i was still testing.


Previous Comments:
------------------------------------------------------------------------

[2008-01-29 17:20:42] raven7370 at yahoo dot com

Description:
------------
When i use imagefttext such with an angle of 180 i get the error:
imagefttext() [function.imagefttext]: Problem rendering glyph

With an angle of close to 180 (between 179 and 184.6) but not equal to
180 i do not get an error but the text simply won't be drawn. 
With an angle between 177 to 179 the text will be drawn but stretched
vertically.

This problem occurs with almost all windows fonts with a few
exceptiosn, those being the Chinese ones (SIMSUN.TTF and PMINGLIU.TTF)

With:
GD Support  enabled  
GD Version  bundled (2.0.34 compatible)  
FreeType Support  enabled  
FreeType Linkage  with freetype  
FreeType Version  2.1.7  



Reproduce code:
---------------
$image = imagecreate(512,512);
imagecolorallocate($image,0,0,0); 
$color = imagecolorallocate($image,255,0,0);
imagefttext($image, 21, 176.9, 256, 256, $color, 'ARIALNB.TTF', 'Hello
World');
imagegif($image);

The font mentioned here is from the windows/fonts directory (just
copied directly in the same path as the script)

Expected result:
----------------
I expect to see a pictures with hello world written on it upside down.

Actual result:
--------------
With an angle of 180 the error "imagefttext() [function.imagefttext]:
Problem rendering glyph in ..." is thrown, close to 180 the text is
either not drawn or is stretched.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=43971&edit=1

Reply via email to