# HG changeset patch # User Kenichi Handa # Date 1228479898 0 # Node ID 7d98fd5b386797a7032609e5e69faeac90c67d9b # Parent 234b23733f770689e31a7318fd068cd9a3ef8aff (ftfont_shape_by_flt): Use "combining" flt if the second character is a combining character. diff -r 234b23733f77 -r 7d98fd5b3867 src/ftfont.c --- 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. */