aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ftfont.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/ftfont.c b/src/ftfont.c
index bb8af96d7b1..505d508d2e0 100644
--- a/src/ftfont.c
+++ b/src/ftfont.c
@@ -2590,7 +2590,7 @@ ftfont_shape_by_flt (Lisp_Object lgstring, struct font *font,
2590 flt_font_ft.otf = otf; 2590 flt_font_ft.otf = otf;
2591 flt_font_ft.matrix = matrix->xx != 0 ? matrix : 0; 2591 flt_font_ft.matrix = matrix->xx != 0 ? matrix : 0;
2592 2592
2593 if (1 < len || ! otf) 2593 if (1 < len)
2594 { 2594 {
2595 /* A little bit ad hoc. Perhaps, shaper must get script and 2595 /* A little bit ad hoc. Perhaps, shaper must get script and
2596 language information, and select a proper flt for them 2596 language information, and select a proper flt for them
@@ -2598,9 +2598,11 @@ ftfont_shape_by_flt (Lisp_Object lgstring, struct font *font,
2598 int c1 = LGLYPH_CHAR (LGSTRING_GLYPH (lgstring, 1)); 2598 int c1 = LGLYPH_CHAR (LGSTRING_GLYPH (lgstring, 1));
2599 if (CHAR_HAS_CATEGORY (c1, '^')) 2599 if (CHAR_HAS_CATEGORY (c1, '^'))
2600 flt = mflt_get (msymbol ("combining")); 2600 flt = mflt_get (msymbol ("combining"));
2601 else if (! otf) 2601 }
2602 flt = mflt_find (LGLYPH_CHAR (LGSTRING_GLYPH (lgstring, 0)), 2602 if (! flt && ! otf)
2603 &flt_font_ft.flt_font); 2603 {
2604 flt = mflt_find (LGLYPH_CHAR (LGSTRING_GLYPH (lgstring, 0)),
2605 &flt_font_ft.flt_font);
2604 if (! flt) 2606 if (! flt)
2605 return make_number (0); 2607 return make_number (0);
2606 } 2608 }