GNOME Bugzilla – Bug 145233
Zero-width non-joiner is displayed.
Last modified: 2004-12-22 21:47:04 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"
Created attachment 29129 [details] unicode text file This is a test case text file that displays incorrectly.
Created attachment 29130 [details] screenshot of problem Screenshot of the incorrectly rendered text.
Created attachment 29131 [details] DVBOT-Surekh font
More-or-less the same as bug 118302
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)
Created attachment 34880 [details] [review] Patch I applied