#45176 [NEW]: Create image from ttf file failed
| From: | heyond at yahoo dot com dot cn | Date: | Wed, 04 Jun 2008 14:24:08 +0000 |
| Subject: | #45176 [NEW]: Create image from ttf file failed | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-125494@lists.php.net to get a copy of this message | ||
From: heyond at yahoo dot com dot cn
Operating system: windows 2003
PHP version: 5.2.6
PHP Bug Type: GD related
Bug description: Create image from ttf file failed
Description:
------------
I try to create a font image from ttf file, but I encounted a error :
Warning: imagettftext() [function.imagettftext]: Unable to find a CharMap
that I can handle in D:\www\mvc\ttf2.php on line 49
only few ttf file like this, I guess the freetypes version too lower.
Reproduce code:
---------------
imagettftext($im, $fontsize, 0, $x, $y, $fgcolor, $fontfile, 'abc');
Expected result:
----------------
a binary image.
Actual result:
--------------
Warning: imagettftext() [function.imagettftext]: Unable to find a CharMap
that I can handle in D:\www\guomo.com\ttf.php on line 33
ÿ?JFIFÿ>CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), default quality
ÿC $.' ",#(7),01444'9=82<.342ÿC
2!!22222222222222222222222222222222222222222222222222ÿ(J"ÿ
ÿ?}!1AQa"q2?#B±ÁRÑð$3br?
%&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz
¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖרÙÚáâãäåæçèéêñòóôõö÷øù?
ÿ?w!1AQaq"2?B¡±Á
#3R?br?$4??&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz
¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖרÙÚâãäåæçèéêòóôõö÷øùúÿ
?õJ(¢¸Í????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????ÿ
--
Edit bug report at http://bugs.php.net/?id=45176&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45176&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45176&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45176&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45176&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=45176&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=45176&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=45176&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=45176&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=45176&r=support
Expected behavior: http://bugs.php.net/fix.php?id=45176&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=45176&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=45176&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45176&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45176&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45176&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=45176&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=45176&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=45176&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=45176&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=45176&r=mysqlcfg