Explicit LRO, RLO, etc. in FT2 patch



With basic-ft2.c, formatting characters in the range U+202A to U+202E
(i.e., bidi formatting characters LRE, RLE, LRO, RLO, and PDF) ends up 
with Pango trying to find glyphs for the characters and failing.  The
result is the .notdef "glyph" and a big gap in the line.

The following patch expands the list of characters that are
effectively passed over as glyphs to include all non-graphic
characters.

Regards,


Tony Graham
------------------------------------------------------------------------
Tony Graham                           mailto:tony graham ireland sun com
Sun Microsystems Ireland Ltd                       Phone: +353 1 8199708
Hamilton House, East Point Business Park, Dublin 3            x(70)19708


Index: modules/basic/basic-ft2.c
===================================================================
RCS file: /sgnome/cvsroots/GNOME/pango/modules/basic/basic-ft2.c,v
retrieving revision 1.11
diff -r1.11 basic-ft2.c
223c223
<       if (wc == 0x200B || wc == 0x200E || wc == 0x200F)	/* Zero-width characters */
---
>       if (!g_unichar_isprint (wc))	/* Zero-width characters */




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]