After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 145233 - Zero-width non-joiner is displayed.
Zero-width non-joiner is displayed.
Status: RESOLVED FIXED
Product: pango
Classification: Platform
Component: indic
1.4.x
Other Linux
: Normal normal
: 1.4.2
Assigned To: Pango Indic
Pango Indic
Depends on:
Blocks:
 
 
Reported: 2004-07-01 05:22 UTC by Aniruddha Shankar
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.5/2.6


Attachments
unicode text file (19 bytes, text/plain)
2004-07-01 05:24 UTC, Aniruddha Shankar
  Details
screenshot of problem (11.18 KB, image/png)
2004-07-01 05:33 UTC, Aniruddha Shankar
  Details
DVBOT-Surekh font (229.30 KB, application/octet-stream)
2004-07-01 05:50 UTC, Aniruddha Shankar
  Details
Patch I applied (2.03 KB, patch)
2004-12-16 00:12 UTC, Owen Taylor
none Details | Review

Description Aniruddha Shankar 2004-07-01 05:22:18 UTC
Am having a problem with all Devanagari fonts. 
U200C, the Zero-Width Non-Joiner character is displayed, when it shouldnt be.
I'm using fontconfig 2.2.2 and freetype-2.1.5 . My font of choice is the
excellent DVBOT font.

U0915,U094D,U200C,U0936, - this should be displayed "na ka (with halant) sha"
Comment 1 Aniruddha Shankar 2004-07-01 05:24:42 UTC
Created attachment 29129 [details]
unicode text file 

This is a test case text file that displays incorrectly.
Comment 2 Aniruddha Shankar 2004-07-01 05:33:06 UTC
Created attachment 29130 [details]
screenshot of problem 

Screenshot of the incorrectly rendered text.
Comment 3 Aniruddha Shankar 2004-07-01 05:50:51 UTC
Created attachment 29131 [details]
DVBOT-Surekh font
Comment 4 Owen Taylor 2004-07-30 21:49:27 UTC
More-or-less the same as bug 118302
Comment 5 Owen Taylor 2004-12-16 00:11:48 UTC
I have *no clue* what the corresponding code in ICU is doing. It
seems to map most control characters to 0xffff before glyph processing
but maps ZWJ and ZWNJ to 1. (1? Isn't 1 a valid TrueType glyph index?)

I've created a simple patch to map zero width characters to 0 in the
same way that the basic and arabic shapers do. (0 in Pango means 
"don't draw" - it isn't literally the TrueType glyph index 0, which
would draw the unknown glyph box)

Wed Dec 15 18:50:18 2004  Owen Taylor  <otaylor@redhat.com>

        * modules/indic/indic-fc.c modules/indic/indic-ot.h:
        Force zero-width marks to glyph index 0 so they
        won't be drawn. (#145233, Aniruddha Shankar)
Comment 6 Owen Taylor 2004-12-16 00:12:09 UTC
Created attachment 34880 [details] [review]
Patch I applied