Mercurial > emacs
changeset 100239:7d98fd5b3867
(ftfont_shape_by_flt): Use "combining" flt if the
second character is a combining character.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Fri, 05 Dec 2008 12:24:58 +0000 |
parents | 234b23733f77 |
children | 422df56f8807 |
files | src/ftfont.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ftfont.c Fri Dec 05 07:09:16 2008 +0000 +++ b/src/ftfont.c Fri Dec 05 12:24:58 2008 +0000 @@ -1866,7 +1866,8 @@ flt_font_ft.font = font; flt_font_ft.ft_face = ft_face; flt_font_ft.otf = otf; - if (ASCII_CHAR_P (gstring.glyphs[0].c)) + if (len > 1 + && gstring.glyphs[1].c >= 0x300 && gstring.glyphs[1].c <= 0x36F) /* A little bit ad hoc. Perhaps, shaper must get script and language information, and select a proper flt for them here. */