aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2012-03-19 13:08:07 +0900
committerKenichi Handa2012-03-19 13:08:07 +0900
commit4827f94e1725c34d4b19d79f4c74f16a0dc3b0cb (patch)
treef7388f6e65d59e45911581173689919f5c78971f /src
parent4b05d72231e7653b1c4eee9ecf95758f7767764a (diff)
downloademacs-4827f94e1725c34d4b19d79f4c74f16a0dc3b0cb.tar.gz
emacs-4827f94e1725c34d4b19d79f4c74f16a0dc3b0cb.zip
ftfont.c (ftfont_drive_otf): Mask bits of character code to make it fit in a valid range (Bug#11003).
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/ftfont.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 07cc8dac1b3..80bc42fa8c6 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12012-03-19 Kenichi Handa <handa@m17n.org>
2
3 * ftfont.c (ftfont_drive_otf): Mask bits of character code to make
4 it fit in a valid range (Bug#11003).
5
12012-03-12 Chong Yidong <cyd@gnu.org> 62012-03-12 Chong Yidong <cyd@gnu.org>
2 7
3 * eval.c (inhibit_lisp_code): Rename from 8 * eval.c (inhibit_lisp_code): Rename from
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,
1856 setup_otf_gstring (len); 1856 setup_otf_gstring (len);
1857 for (i = 0; i < len; i++) 1857 for (i = 0; i < len; i++)
1858 { 1858 {
1859 otf_gstring.glyphs[i].c = in->glyphs[from + i].c; 1859 otf_gstring.glyphs[i].c = in->glyphs[from + i].c & 0x11FFFF;
1860 otf_gstring.glyphs[i].glyph_id = in->glyphs[from + i].code; 1860 otf_gstring.glyphs[i].glyph_id = in->glyphs[from + i].code;
1861 } 1861 }
1862 1862