diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/fontset.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/fontset.c b/src/fontset.c index eca79168ffb..983f4f0d044 100644 --- a/src/fontset.c +++ b/src/fontset.c | |||
| @@ -660,6 +660,10 @@ fontset_font (fontset, c, face, id) | |||
| 660 | Lisp_Object rfont_def; | 660 | Lisp_Object rfont_def; |
| 661 | Lisp_Object base_fontset; | 661 | Lisp_Object base_fontset; |
| 662 | 662 | ||
| 663 | /* If we know there is no font of C, don't do any work. */ | ||
| 664 | if (EQ (fontset_ref (fontset, c), Qt)) | ||
| 665 | return Qnil; | ||
| 666 | |||
| 663 | /* Try a font-group of FONTSET. */ | 667 | /* Try a font-group of FONTSET. */ |
| 664 | rfont_def = fontset_find_font (fontset, c, face, id, 0); | 668 | rfont_def = fontset_find_font (fontset, c, face, id, 0); |
| 665 | if (VECTORP (rfont_def)) | 669 | if (VECTORP (rfont_def)) |
| @@ -696,7 +700,7 @@ fontset_font (fontset, c, face, id) | |||
| 696 | return rfont_def; | 700 | return rfont_def; |
| 697 | } | 701 | } |
| 698 | 702 | ||
| 699 | /* Remeber that we have no font for C. */ | 703 | /* Remember that we have no font for C. */ |
| 700 | FONTSET_SET (fontset, make_number (c), Qt); | 704 | FONTSET_SET (fontset, make_number (c), Qt); |
| 701 | 705 | ||
| 702 | return Qnil; | 706 | return Qnil; |