Edit report at https://bugs.php.net/bug.php?id=34670&edit=1
ID: 34670
Comment by: kalpit dot jain at wagmob dot com
Reported by: klaus at glashoff dot net
Summary: imageTTFText for Indian scripts (Devanagari)
Status: Open
Type: Bug
Package: GD related
Operating System: Windows XP
PHP Version: 5.*, 6
Block user comment: N
Private report: N
New Comment:
we are running into this bug when writing
à¤à¥à¤·à¤¤à¥à¤°à¤¿à¤¯ on an image using imagettftext
imagettftext can not write à¤à¥à¤·
Previous Comments:
------------------------------------------------------------------------
[2015-08-08 20:53:30] jay dot scv at gmail dot com
I think, you got it. Problem is with most Indic and Arabic languages.
Please note that most of these fonts carry GPOS and GSUB tables. Font tables also have information
related to substitution of glyph combinations with a different glyph.
Refer: http://fontforge.github.io/gposgsub.html
------------------------------------------------------------------------
[2015-08-08 11:38:43] cmb@php.net
Thanks, now I got it. The problem isn't particularly related to
Bengali, but rather to combining characters in general, which are
not supported by imagettftext().
------------------------------------------------------------------------
[2015-08-08 05:01:48] jay dot scv at gmail dot com
A direct browser based text to image:
http://utils.net/caption/fidd-utf8:hi_in/fid-r/cn-1/fidd-utf8:hi_in/t-AnyHindiUnicodeStringHere
On every reload, it will use a random hindi unicode capable code.
For any other language change utf8:hi_in to
utf8:<2letter_language_code>_<2_letter_country_code>
------------------------------------------------------------------------
[2015-08-08 04:37:53] jay dot scv at gmail dot com
Please refer http://unicode.org/faq/indic.html#17
This will provide you enough information on how 'virama' combinations should be rendered.
I could provide any supporting information you may need.
------------------------------------------------------------------------
[2015-08-08 04:30:47] jay dot scv at gmail dot com
Problem still remains. Image shown on imagur is incorrect.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=34670
--
Edit this bug report at https://bugs.php.net/bug.php?id=34670&edit=1