#34670 [Opn->Fbk]: imageTTFText for Indian scripts (Devanagari)
From: sniper@php.net Date: Wed, 28 Sep 2005 10:52:39 +0000 Subject: #34670 [Opn->Fbk]: imageTTFText for Indian scripts (Devanagari) References: 1 Groups: php.bugs Request: Send a blank email to php-bugs+get-85705@lists.php.net to get a copy of this message
ID: 34670
Updated by: sniper@php.net
Reported By: klaus at glashoff dot net
-Status: Open
+Status: Feedback
-Bug Type: *Graphics related
+Bug Type: GD related
Operating System: Windows XP
PHP Version: 5.0.5
Assigned To: pajoye
Previous Comments:
------------------------------------------------------------------------
[2005-09-28 12:49:26] pajoye@php.net
Please provide links to:
- the font you use (Sanskrit2003.ttf)
or are you using the font from www.omkarananda-ashram.org?
- expected results (using another program if required)
as images
- actual result as images
------------------------------------------------------------------------
[2005-09-28 11:50:56] klaus at glashoff dot net
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 ="क्त";
$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 ्.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34670&edit=1
Thread (22 messages)
- #34670 [Opn]: imageTTFText for Indian scripts (Devanagari)
- #34670 [Opn->Fbk]: imageTTFText for Indian scripts (Devanagari)
- #34670 [Fbk->Opn]: imageTTFText for Indian scripts (Devanagari)
- #34670 [Opn]: imageTTFText for Indian scripts (Devanagari)
- #34670 [Opn->Asn]: imageTTFText for Indian scripts (Devanagari)
- #34670 [Asn->Fbk]: imageTTFText for Indian scripts (Devanagari)
- #34670 [Fbk->Opn]: imageTTFText for Indian scripts (Devanagari)
- #34670 [Opn->Ver]: imageTTFText for Indian scripts (Devanagari)
- #34670 [Ver->Asn]: imageTTFText for Indian scripts (Devanagari)
- #34670 [Com]: imageTTFText for Indian scripts (Devanagari)
- Bug #34670 [Asn->Fbk]: imageTTFText for Indian scripts (Devanagari)
- Bug #34670 [Fbk->NoF]: imageTTFText for Indian scripts (Devanagari)
- Bug #34670 [Com]: imageTTFText for Indian scripts (Devanagari)
- Bug #34670 [Com]: imageTTFText for Indian scripts (Devanagari)
- Bug #34670 [Com]: imageTTFText for Indian scripts (Devanagari)
- Bug #34670 [NoF->Opn]: imageTTFText for Indian scripts (Devanagari)
- Bug #34670 [Com]: imageTTFText for Indian scripts (Devanagari)
- Bug #34670 [Asn->Opn]: imageTTFText for Indian scripts (Devanagari)
- Bug #34670 [Com]: imageTTFText for Indian scripts (Devanagari)
- Bug #34670 [Opn]: imagettftext() doesn't combine combining chars
- Bug #34670 [Opn->Sus]: imagettftext() doesn't combine combining chars
| « previous | php.bugs (#85705) | next » |
|---|