ftfont.c (ftfont_drive_otf): Mask bits of character code to make it fit in a valid range (Bug#11003).

This commit is contained in:
Kenichi Handa 2012-03-19 13:08:07 +09:00
parent 4b05d72231
commit 4827f94e17
2 changed files with 6 additions and 1 deletions

View 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-12 Chong Yidong <cyd@gnu.org>
* eval.c (inhibit_lisp_code): Rename from

View 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;
}