diff options
| author | Kenichi Handa | 2009-06-23 05:47:46 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2009-06-23 05:47:46 +0000 |
| commit | b23bf85abc498269dd30ac0ecc305ed836c59c74 (patch) | |
| tree | cf183771c3494cdd47a7db63a2170b86777ff529 /src | |
| parent | d4a885b2d7c3cee4bec2eccc5cf358a974a70054 (diff) | |
| download | emacs-b23bf85abc498269dd30ac0ecc305ed836c59c74.tar.gz emacs-b23bf85abc498269dd30ac0ecc305ed836c59c74.zip | |
(fontset_font): Call FONT_DEFERRED_LOG.
(face_for_char): Don't call font_deferred_log here.
(font_for_char): Likewise.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fontset.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fontset.c b/src/fontset.c index 8f3fcd3d17d..08a011306c5 100644 --- a/src/fontset.c +++ b/src/fontset.c | |||
| @@ -687,6 +687,7 @@ fontset_font (fontset, c, face, id) | |||
| 687 | Lisp_Object base_fontset; | 687 | Lisp_Object base_fontset; |
| 688 | 688 | ||
| 689 | /* Try a font-group of FONTSET. */ | 689 | /* Try a font-group of FONTSET. */ |
| 690 | FONT_DEFERRED_LOG ("current fontset: font for", make_number (c), Qnil); | ||
| 690 | rfont_def = fontset_find_font (fontset, c, face, id, 0); | 691 | rfont_def = fontset_find_font (fontset, c, face, id, 0); |
| 691 | if (VECTORP (rfont_def)) | 692 | if (VECTORP (rfont_def)) |
| 692 | return rfont_def; | 693 | return rfont_def; |
| @@ -700,6 +701,7 @@ fontset_font (fontset, c, face, id) | |||
| 700 | if (NILP (FONTSET_DEFAULT (fontset))) | 701 | if (NILP (FONTSET_DEFAULT (fontset))) |
| 701 | FONTSET_DEFAULT (fontset) | 702 | FONTSET_DEFAULT (fontset) |
| 702 | = make_fontset (FONTSET_FRAME (fontset), Qnil, Vdefault_fontset); | 703 | = make_fontset (FONTSET_FRAME (fontset), Qnil, Vdefault_fontset); |
| 704 | FONT_DEFERRED_LOG ("default fontset: font for", make_number (c), Qnil); | ||
| 703 | rfont_def = fontset_find_font (FONTSET_DEFAULT (fontset), c, face, id, 0); | 705 | rfont_def = fontset_find_font (FONTSET_DEFAULT (fontset), c, face, id, 0); |
| 704 | if (VECTORP (rfont_def)) | 706 | if (VECTORP (rfont_def)) |
| 705 | return rfont_def; | 707 | return rfont_def; |
| @@ -708,6 +710,7 @@ fontset_font (fontset, c, face, id) | |||
| 708 | } | 710 | } |
| 709 | 711 | ||
| 710 | /* Try a fallback font-group of FONTSET. */ | 712 | /* Try a fallback font-group of FONTSET. */ |
| 713 | FONT_DEFERRED_LOG ("current fallback: font for", make_number (c), Qnil); | ||
| 711 | rfont_def = fontset_find_font (fontset, c, face, id, 1); | 714 | rfont_def = fontset_find_font (fontset, c, face, id, 1); |
| 712 | if (VECTORP (rfont_def)) | 715 | if (VECTORP (rfont_def)) |
| 713 | return rfont_def; | 716 | return rfont_def; |
| @@ -717,6 +720,7 @@ fontset_font (fontset, c, face, id) | |||
| 717 | /* Try a fallback font-group of the default fontset . */ | 720 | /* Try a fallback font-group of the default fontset . */ |
| 718 | if (! EQ (base_fontset, Vdefault_fontset)) | 721 | if (! EQ (base_fontset, Vdefault_fontset)) |
| 719 | { | 722 | { |
| 723 | FONT_DEFERRED_LOG ("default fallback: font for", make_number (c), Qnil); | ||
| 720 | rfont_def = fontset_find_font (FONTSET_DEFAULT (fontset), c, face, id, 1); | 724 | rfont_def = fontset_find_font (FONTSET_DEFAULT (fontset), c, face, id, 1); |
| 721 | if (VECTORP (rfont_def)) | 725 | if (VECTORP (rfont_def)) |
| 722 | return rfont_def; | 726 | return rfont_def; |
| @@ -917,7 +921,6 @@ face_for_char (f, face, c, pos, object) | |||
| 917 | id = -1; | 921 | id = -1; |
| 918 | } | 922 | } |
| 919 | 923 | ||
| 920 | font_deferred_log ("font for", Fcons (make_number (c), charset), Qnil); | ||
| 921 | rfont_def = fontset_font (fontset, c, face, id); | 924 | rfont_def = fontset_font (fontset, c, face, id); |
| 922 | if (VECTORP (rfont_def)) | 925 | if (VECTORP (rfont_def)) |
| 923 | { | 926 | { |
| @@ -989,7 +992,6 @@ font_for_char (face, c, pos, object) | |||
| 989 | id = -1; | 992 | id = -1; |
| 990 | } | 993 | } |
| 991 | 994 | ||
| 992 | font_deferred_log ("font for", Fcons (make_number (c), charset), Qnil); | ||
| 993 | rfont_def = fontset_font (fontset, c, face, id); | 995 | rfont_def = fontset_font (fontset, c, face, id); |
| 994 | return (VECTORP (rfont_def) | 996 | return (VECTORP (rfont_def) |
| 995 | ? RFONT_DEF_OBJECT (rfont_def) | 997 | ? RFONT_DEF_OBJECT (rfont_def) |