ID:               31259
 Updated by:       [EMAIL PROTECTED]
 Reported By:      dbad732001 at yahoo dot com
-Status:           Assigned
+Status:           Bogus
 Bug Type:         GD related
 Operating System: *
 PHP Version:      4CVS, 5CVS (2005-01-14)
 Assigned To:      pajoye
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Broken font, beg MS or your font editor.

--Pierre


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

[2005-01-14 22:07:52] [EMAIL PROTECTED]

Also noticed: This bug is present in GD 2.0.33 too..


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

[2005-01-14 19:13:46] [EMAIL PROTECTED]

This bug was caused by "fix" of bug #28598 (reverting the fix fixes
this bug)


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

[2004-12-22 22:22:19] dbad732001 at yahoo dot com

Description:
------------
Using the function imagettftext of the GD library fails with some ttf
fonts; instead of the letters appears only little boxes, similar to the
ones showed in the windows charachter map application when a gliph is
not present in a font.

The behavior was OK on the 4.3.9 version

The code works if, for example, i use another ttf file (arial.ttf)

Reproduce code:
---------------
<?php
  header("Content-type: image/gif");
  $im = imagecreate(600, 200);
  $white = imagecolorallocate($im, 221, 221, 221);
  $black = imagecolorallocate($im, 51, 0, 153);
  imagettftext($im, 30, 0, 100, 100, $black, "font/rbb.ttf" ,"This is a
test");
  imagegif($im);
  imagedestroy($im);
?>

The font rbb.ttf can be downloaded at

http://www.revelshblindbeholders.net/font/rbb.ttf

Expected result:
----------------
The result should be a gray box with the text "This is a test" written
with the chosen font

Actual result:
--------------
The gray box appear, but instead of the text i see only little boxes,
alike the ones showed in the Win char map when a char is not
implemented within the font.

The code works if, for example i use another ttf file (arial.ttf)


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


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

Reply via email to