diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2009-01-24 22:42:02 +0000 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2009-01-24 22:42:02 +0000 |
commit | 8657206e1dcc9ade323d8cbb213629723c46b222 (patch) | |
tree | 160f2c94dfbceadd332076d03bb7cc943c22cc2a /src | |
parent | 5ce8730828884d64a1505e3c5475a237aae5e671 (diff) | |
download | emacs-8657206e1dcc9ade323d8cbb213629723c46b222.tar.gz |
(fontset_font): If we know there is no font, don't do any work.
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) Lisp_Object rfont_def; Lisp_Object base_fontset; + /* If we know there is no font of C, don't do any work. */ + if (EQ (fontset_ref (fontset, c), Qt)) + return Qnil; + /* Try a font-group of FONTSET. */ rfont_def = fontset_find_font (fontset, c, face, id, 0); if (VECTORP (rfont_def)) @@ -696,7 +700,7 @@ fontset_font (fontset, c, face, id) return rfont_def; } - /* Remeber that we have no font for C. */ + /* Remember that we have no font for C. */ FONTSET_SET (fontset, make_number (c), Qt); return Qnil; |