From:             klaus at glashoff dot net
Operating system: Windows XP
PHP version:      5.0.5
PHP Bug Type:     *Graphics related
Bug description:  imageTTFText for Indian scripts (Devanagari)

Description:
------------
The results of imagettftext() are - at least for Indian languages - not
totally satisfying:  Consonant conjuncts appear as two consonants with
virama.  In order to display "kta" in Devanagari, imagettftext, for
example,  when given the argument " k + virama + t"
(क्त) should return the conjunct for "kt", but it does
not.

(Instead of the font Sanskrit2003.ttf, use any Unicode font containing
U+0900 - U+097F; for example mangal.ttf).



Reproduce code:
---------------
<?php
Header ("Content-type: image/png");
$string ="&#2325;&#2381;&#2340;";
$string=rawurldecode($string);
$im =  imagecreate (200, 25);
$white = ImageColorAllocate ($im,224,224,224);
$black = ImageColorAllocate ($im,50,100,100);

ImageTTFText ($im, 12, 0, 5, 15, $black, "Sanskrit2003.ttf", $string);
ImagePng ($im);
ImageDestroy ($im);
?>

Expected result:
----------------
The Devanagari conjunct glyph for "kt" should appear, not a separate "k"
with virama sign &#2381.


-- 
Edit bug report at http://bugs.php.net/?id=34670&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=34670&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=34670&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=34670&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=34670&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=34670&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=34670&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=34670&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=34670&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=34670&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=34670&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=34670&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=34670&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=34670&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=34670&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=34670&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=34670&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=34670&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=34670&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=34670&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=34670&r=mysqlcfg

Reply via email to