bugThe FreeType Project - Bugs: bug #30315, Bengali Text Is not Rendered...

 
 

bug #30315: Bengali Text Is not Rendered Correctly in Image

Submitted by:  Mokaddim Akm <shiplu>
Submitted on:  Thu 01 Jul 2010 03:54:45 PM UTC  
 
Severity: 3 - NormalItem Group: Incorrect behaviour
Status: InvalidPrivacy: Public
Assigned to: Werner LEMBERG <wl>Open/Closed: Closed
Planned Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 01 Jul 2010 11:47:09 PM UTC, comment #2:

This is an invalid report. To render Indic languages correctly, and Bengali in particular, you need a shaping engine which (a) does proper reordering of the input and (b) activates the OpenType layout tables to handle ligatures. Such a shaping engine is not part of FreeType, it's located at a higher level, for example in the Pango or Qt libraries.

In other words, if ImageMagick relies on FreeType only for rendering, you will never get correct results for Indic scripts.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Thu 01 Jul 2010 04:46:07 PM UTC, comment #1:

Previously I have discussed it in image magic community. You may get more information on http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=16411&start=0

Just Now I have checked all the fonts I have in my linux box.
All the fonts have the same exact result.

These are the font list that I have checked.

/etc/alternatives/ttf-japanese-gothic.ttf
/home/user1/.fonts/SolaimanLipi_20-04-07.ttf
/home/user1/.fonts/vrinda.ttf
/home/user1/Downloads/Mukti_17-03-2007.ttf
/home/user1/Downloads/SolaimanLipi_29-05-06.ttf
/home/user1/Downloads/kohana-2.3.4/system/fonts/DejaVuSerif.ttf
/home/user1/Downloads/yii-1.1.1.r1907/framework/web/widgets/captcha/Duality.ttf
/usr/share/cups/fonts/FreeMono.ttf
/usr/share/cups/fonts/FreeMonoBold.ttf
/usr/share/cups/fonts/FreeMonoBoldOblique.ttf
/usr/share/cups/fonts/FreeMonoOblique.ttf
/usr/share/doc/defoma/examples/dfbrs9.ttf.hints
/usr/share/doc/defoma/examples/dfmrm7.ttf.hints
/usr/share/doc/defoma/examples/higasiyama.ttf.hints
/usr/share/doc/defoma/examples/ikaruga.ttf.hints
/usr/share/doc/defoma/examples/kamakura.ttf.hints
/usr/share/doc/defoma/examples/momoyama.ttf.hints
/usr/share/fonts/truetype/ttf-japanese-gothic.ttf
/usr/share/fonts/truetype/freefont/FreeMono.ttf
/usr/share/fonts/truetype/freefont/FreeMonoBold.ttf
/usr/share/fonts/truetype/freefont/FreeMonoBoldOblique.ttf
/usr/share/fonts/truetype/freefont/FreeMonoOblique.ttf
/usr/share/fonts/truetype/freefont/FreeSans.ttf
/usr/share/fonts/truetype/freefont/FreeSansBold.ttf
/usr/share/fonts/truetype/freefont/FreeSansBoldOblique.ttf
/usr/share/fonts/truetype/freefont/FreeSansOblique.ttf
/usr/share/fonts/truetype/freefont/FreeSerif.ttf
/usr/share/fonts/truetype/freefont/FreeSerifBold.ttf
/usr/share/fonts/truetype/freefont/FreeSerifBoldItalic.ttf
/usr/share/fonts/truetype/freefont/FreeSerifItalic.ttf
/usr/share/fonts/truetype/openoffice/opens___.ttf
/usr/share/fonts/truetype/takao/TakaoPGothic.ttf
/usr/share/fonts/truetype/thai/Garuda-Bold.ttf
/usr/share/fonts/truetype/thai/Garuda-BoldOblique.ttf
/usr/share/fonts/truetype/thai/Garuda-Oblique.ttf
/usr/share/fonts/truetype/thai/Garuda.ttf
/usr/share/fonts/truetype/thai/Kinnari-Bold.ttf
/usr/share/fonts/truetype/thai/Kinnari-BoldItalic.ttf
/usr/share/fonts/truetype/thai/Kinnari-BoldOblique.ttf
/usr/share/fonts/truetype/thai/Kinnari-Italic.ttf
/usr/share/fonts/truetype/thai/Kinnari-Oblique.ttf
/usr/share/fonts/truetype/thai/Kinnari.ttf
/usr/share/fonts/truetype/thai/Loma-Bold.ttf
/usr/share/fonts/truetype/thai/Loma-BoldOblique.ttf
/usr/share/fonts/truetype/thai/Loma-Oblique.ttf
/usr/share/fonts/truetype/thai/Loma.ttf
/usr/share/fonts/truetype/thai/Norasi-Bold.ttf
/usr/share/fonts/truetype/thai/Norasi-BoldItalic.ttf
/usr/share/fonts/truetype/thai/Norasi-BoldOblique.ttf
/usr/share/fonts/truetype/thai/Norasi-Italic.ttf
/usr/share/fonts/truetype/thai/Norasi-Oblique.ttf
/usr/share/fonts/truetype/thai/Norasi.ttf
/usr/share/fonts/truetype/thai/Purisa-Bold.ttf
/usr/share/fonts/truetype/thai/Purisa-BoldOblique.ttf
/usr/share/fonts/truetype/thai/Purisa-Oblique.ttf
/usr/share/fonts/truetype/thai/Purisa.ttf
/usr/share/fonts/truetype/thai/Sawasdee-Bold.ttf
/usr/share/fonts/truetype/thai/Sawasdee-BoldOblique.ttf
/usr/share/fonts/truetype/thai/Sawasdee-Oblique.ttf
/usr/share/fonts/truetype/thai/Sawasdee.ttf
/usr/share/fonts/truetype/thai/TlwgMono-Bold.ttf
/usr/share/fonts/truetype/thai/TlwgMono-BoldOblique.ttf
/usr/share/fonts/truetype/thai/TlwgMono-Oblique.ttf
/usr/share/fonts/truetype/thai/TlwgMono.ttf
/usr/share/fonts/truetype/thai/TlwgTypewriter-Bold.ttf
/usr/share/fonts/truetype/thai/TlwgTypewriter-BoldOblique.ttf
/usr/share/fonts/truetype/thai/TlwgTypewriter-Oblique.ttf
/usr/share/fonts/truetype/thai/TlwgTypewriter.ttf
/usr/share/fonts/truetype/thai/TlwgTypist-Bold.ttf
/usr/share/fonts/truetype/thai/TlwgTypist-BoldOblique.ttf
/usr/share/fonts/truetype/thai/TlwgTypist-Oblique.ttf
/usr/share/fonts/truetype/thai/TlwgTypist.ttf
/usr/share/fonts/truetype/thai/TlwgTypo-Bold.ttf
/usr/share/fonts/truetype/thai/TlwgTypo-BoldOblique.ttf
/usr/share/fonts/truetype/thai/TlwgTypo-Oblique.ttf
/usr/share/fonts/truetype/thai/TlwgTypo.ttf
/usr/share/fonts/truetype/thai/Umpush-Bold.ttf
/usr/share/fonts/truetype/thai/Umpush-BoldOblique.ttf
/usr/share/fonts/truetype/thai/Umpush-Light.ttf
/usr/share/fonts/truetype/thai/Umpush-LightOblique.ttf
/usr/share/fonts/truetype/thai/Umpush-Oblique.ttf
/usr/share/fonts/truetype/thai/Umpush.ttf
/usr/share/fonts/truetype/thai/Waree-Bold.ttf
/usr/share/fonts/truetype/thai/Waree-BoldOblique.ttf
/usr/share/fonts/truetype/thai/Waree-Oblique.ttf
/usr/share/fonts/truetype/thai/Waree.ttf
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Bold.ttf
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-Bold.ttf
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf
/usr/share/fonts/truetype/ttf-indic-fonts-core/Kedage-b.ttf
/usr/share/fonts/truetype/ttf-indic-fonts-core/Kedage-n.ttf
/usr/share/fonts/truetype/ttf-indic-fonts-core/Malige-b.ttf
/usr/share/fonts/truetype/ttf-indic-fonts-core/Malige-n.ttf
/usr/share/fonts/truetype/ttf-indic-fonts-core/Meera_04.ttf
/usr/share/fonts/truetype/ttf-indic-fonts-core/MuktiNarrow.ttf
/usr/share/fonts/truetype/ttf-indic-fonts-core/MuktiNarrowBold.ttf
/usr/share/fonts/truetype/ttf-indic-fonts-core/Pothana2000.ttf
/usr/share/fonts/truetype/ttf-indic-fonts-core/Rachana_04.ttf
/usr/share/fonts/truetype/ttf-indic-fonts-core/Rekha.ttf
/usr/share/fonts/truetype/ttf-indic-fonts-core/Vemana.ttf
/usr/share/fonts/truetype/ttf-indic-fonts-core/gargi.ttf
/usr/share/fonts/truetype/ttf-indic-fonts-core/lohit_bn.ttf
/usr/share/fonts/truetype/ttf-indic-fonts-core/lohit_gu.ttf
/usr/share/fonts/truetype/ttf-indic-fonts-core/lohit_hi.ttf
/usr/share/fonts/truetype/ttf-indic-fonts-core/lohit_ta.ttf
/usr/share/fonts/truetype/ttf-indic-fonts-core/utkal.ttf
/usr/share/fonts/truetype/ttf-kacst-one/KacstOne.ttf
/usr/share/fonts/truetype/ttf-khmeros-core/KhmerOS.ttf
/usr/share/fonts/truetype/ttf-khmeros-core/KhmerOSsys.ttf
/usr/share/fonts/truetype/ttf-lao/Phetsarath_OT.ttf
/usr/share/fonts/truetype/ttf-liberation/LiberationMono-Bold.ttf
/usr/share/fonts/truetype/ttf-liberation/LiberationMono-BoldItalic.ttf
/usr/share/fonts/truetype/ttf-liberation/LiberationMono-Italic.ttf
/usr/share/fonts/truetype/ttf-liberation/LiberationMono-Regular.ttf
/usr/share/fonts/truetype/ttf-liberation/LiberationSans-Bold.ttf
/usr/share/fonts/truetype/ttf-liberation/LiberationSans-BoldItalic.ttf
/usr/share/fonts/truetype/ttf-liberation/LiberationSans-Italic.ttf
/usr/share/fonts/truetype/ttf-liberation/LiberationSans-Regular.ttf
/usr/share/fonts/truetype/ttf-liberation/LiberationSerif-Bold.ttf
/usr/share/fonts/truetype/ttf-liberation/LiberationSerif-BoldItalic.ttf
/usr/share/fonts/truetype/ttf-liberation/LiberationSerif-Italic.ttf
/usr/share/fonts/truetype/ttf-liberation/LiberationSerif-Regular.ttf
/usr/share/fonts/truetype/ttf-punjabi-fonts/Saab.ttf
/usr/share/fonts/truetype/ttf-punjabi-fonts/lohit_pa.ttf
/usr/share/fonts/truetype/unfonts/UnBatang.ttf
/usr/share/fonts/truetype/unfonts/UnBatangBold.ttf
/usr/share/fonts/truetype/unfonts/UnDotum.ttf
/usr/share/fonts/truetype/unfonts/UnDotumBold.ttf
/usr/share/php/libkohana/fonts/DejaVuSerif.ttf
/usr/share/php/libkohana2.3.4/system/fonts/DejaVuSerif.ttf
/usr/share/php/libyii1.1.1/web/widgets/captcha/Duality.ttf
/var/lib/defoma/gs.d/dirs/fonts/UnBatang.ttf
/var/lib/defoma/gs.d/dirs/fonts/UnBatangBold.ttf
/var/lib/defoma/gs.d/dirs/fonts/UnDotum.ttf
/var/lib/defoma/gs.d/dirs/fonts/UnDotumBold.ttf
/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType/UnBatang.ttf
/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType/UnBatangBold.ttf
/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType/UnDotum.ttf
/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType/UnDotumBold.ttf
/var/lib/dpkg/alternatives/ttf-japanese-gothic.ttf
/var/www/yii/framework/web/widgets/captcha/Duality.ttf

Mokaddim Akm <shiplu>
Thu 01 Jul 2010 03:54:45 PM UTC, original submission:

Expected Output (created by Gimp)

<img src="http://mokadd.im/~shiplu/images/Expected_output_bn_utf8.png">

Current Behavior
<img src="http://mokadd.im/~shiplu/images/Actual_output_bn_utf8.png">

This can be reproduced by following command.

<code>
ftview -m 'অরুন্ধুতি রয়, সিরাজুদ্দৌলা, ঋতুপর্ণা' 48 /usr/share/fonts/truetype/freefont/FreeSans.ttf
</code>

Mokaddim Akm <shiplu>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by wl (Posted a comment)
  • -unavailable- added by shiplu (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 01 Jul 2010 11:47:09 PM UTCwlStatusNone=>Invalid
      Assigned toNone=>wl
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1