Bug #34670 [Com]: imageTTFText for Indian scripts (Devanagari)

From: Date: Sat, 08 Aug 2015 20:53:32 +0000
Subject: Bug #34670 [Com]: imageTTFText for Indian scripts (Devanagari)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-195032@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=34670&edit=1

 ID:                 34670
 Comment by:         jay dot scv at gmail dot com
 Reported by:        klaus at glashoff dot net
 Summary:            imageTTFText for Indian scripts (Devanagari)
 Status:             Assigned
 Type:               Bug
 Package:            GD related
 Operating System:   Windows XP
 PHP Version:        5.*, 6
 Assigned To:        pajoye
 Block user comment: N
 Private report:     N

 New Comment:

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


Previous Comments:
------------------------------------------------------------------------
[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.

------------------------------------------------------------------------
[2015-07-26 04:22:15] php-bugs at lists dot php dot net

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.

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


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


Thread (22 messages)

« previous php.bugs (#195032) next »