GNOME Bugzilla – Bug 644716
Junk characters while displaying Unicode characters.
Last modified: 2011-09-22 10:47:24 UTC
Created attachment 183331 [details] Modified Pango example file cairoshape.c example file was modified as below (to include Japanese text): Junk characters are observed. Similar behavior is observed with other languages which use Unicode characters, such as Korean, Kannada etc.
Bugzilla is not a user help forum. Please contact gtk-app-devel-list for that.
Behad, the application we are developing is different. cairoshape.c is not our application. It is example file provided by pango (pango-1.28.3/examples/cairoshape.c). I have modified that file to use Japanese characters instead of English characters provided in the example. The bug is in pango because, the junk characters are not displayed while using pango_cairo_layout_path(). They are displayed only when we use pango_cairo_show_layout().
I am also facing the same problem.
At least attach a screenshot!
Created attachment 183488 [details] Images containing junk characters The third file (file2.png) shows junk characters produced by pango_cairo_show_layout().
The relevant code is this: cairo_set_source_rgb(cr, 0,0,1); pango_cairo_show_layout (cr, layout); pango_cairo_layout_path (cr, layout); cairo_set_source_rgb(cr, 1,1,0); cairo_fill(cr); pango_cairo_show_layout() writes text in blue colour (which has some junk), where as pango_cairo_layout_path() writes text in yellow colour (This is proper).
Please attach an unzipped PNG image.
The first two shots look fine. Are you only talking about the third one?
Yes. Only the third file, second line has the problem. If you increase the loop count and add more text, you will notice that more text will get garbled.
Few observations: 1. Once the garbage comes, it keeps on increasing in the subsequent images (if the loop count is increased) 2. When the text font size is more, issue is more. 3. It is observed for English characters also when the font size is around 140 (not in the example code, but in our application)
Any updates on this issue?
No, I haven't got time to debug it. Feel free to do so.
Wildly guessing, I'd say it's a bug in FreeType's rasterizer.
(In reply to comment #14) > Wildly guessing, I'd say it's a bug in FreeType's rasterizer. Behdad, since I don't have much idea on the internal architecture of Pango/Cairo/DirectFB, can you please tell some steps to corner down the issue? How can I confirm that it is a FreeType bug, and not of Pango?
This bugtracker is not really meant as a support forum... Tried mailing lists already?
(In reply to comment #16) > This bugtracker is not really meant as a support forum... > Tried mailing lists already? Thanks André Klapper, for jumping in :) Are you talking about gtk-app-devel-list mentioned earlier by Behdad? If so, no, since I still believe it's a Pango bug and not related to the application. The reason for telling this is that there is no application in picture here. I have just modified the example file provided with Pango standard distribution (pango-1.28.3/examples/cairoshape.c). Can you please look at the Comments 2 and 10, wherein I have given more details? Also, please take a look at the modified Pango example file attached in the bug description. Thanks
(In reply to comment #17) > Are you talking about gtk-app-devel-list mentioned earlier by Behdad? First hit when searching for "pango mailing list" on the interwebs is http://mail.gnome.org/mailman/listinfo/gtk-i18n-list > Can you please look at the Comments 2 and 10, wherein I have given more > details? No, as this is not a support forum.
Thanks André, for pointing on to the right direction. I have sent the mail to the list. Thanks
Has anybody else been able to reproduce the problem? Any updates?
No updates as THIS BUG REPORT IS INVALID. Again: Wrong place here.