diff options
author | Kenichi Handa <handa@m17n.org> | 2012-03-19 13:08:07 +0900 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 2012-03-19 13:08:07 +0900 |
commit | 4827f94e1725c34d4b19d79f4c74f16a0dc3b0cb (patch) | |
tree | f7388f6e65d59e45911581173689919f5c78971f /src/ftfont.c | |
parent | 4b05d72231e7653b1c4eee9ecf95758f7767764a (diff) | |
download | emacs-4827f94e1725c34d4b19d79f4c74f16a0dc3b0cb.tar.gz |
ftfont.c (ftfont_drive_otf): Mask bits of character code to make it fit in a valid range (Bug#11003).
Diffstat (limited to 'src/ftfont.c')
-rw-r--r-- | src/ftfont.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ftfont.c b/src/ftfont.c index 3c45eb2f72f..131465b4f85 100644 --- a/src/ftfont.c +++ b/src/ftfont.c @@ -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; } |