]> code.delx.au - gnu-emacs/commitdiff
merge trunk
authorKenichi Handa <handa@m17n.org>
Mon, 19 Mar 2012 04:17:50 +0000 (13:17 +0900)
committerKenichi Handa <handa@m17n.org>
Mon, 19 Mar 2012 04:17:50 +0000 (13:17 +0900)
src/ChangeLog
src/ftfont.c

index adfa363e253495e54191a913821493f516f26e07..8b1221ab6d82c57712da6f7613b626f9980dc949 100644 (file)
@@ -1,3 +1,8 @@
+2012-03-19  Kenichi Handa  <handa@m17n.org>
+
+       * ftfont.c (ftfont_drive_otf): Mask bits of character code to make
+       it fit in a valid range (Bug#11003).
+
 2012-03-18  Eli Zaretskii  <eliz@gnu.org>
 
        * xdisp.c (cursor_row_p): Even if the glyph row ends in a string
index 3c45eb2f72f1e4e24ac5ae4c81189639661f180e..131465b4f85f21f69d21f4cdae6469e0b3e4c0ec 100644 (file)
@@ -1856,7 +1856,7 @@ ftfont_drive_otf (MFLTFont *font,
   setup_otf_gstring (len);
   for (i = 0; i < len; i++)
     {
-      otf_gstring.glyphs[i].c = in->glyphs[from + i].c;
+      otf_gstring.glyphs[i].c = in->glyphs[from + i].c & 0x11FFFF;
       otf_gstring.glyphs[i].glyph_id = in->glyphs[from + i].code;
     }