aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2008-08-18 12:06:33 +0000
committerKenichi Handa2008-08-18 12:06:33 +0000
commit303d51903a88032596186ee8fb02f08a28f653f9 (patch)
tree5decba4f1d1c17ecdfe6f2d1d54e4ca35301c71d /src
parentdb716644516fcbddab198410eb78e7ac94765da0 (diff)
downloademacs-303d51903a88032596186ee8fb02f08a28f653f9.tar.gz
emacs-303d51903a88032596186ee8fb02f08a28f653f9.zip
(face_for_char): Add font log.
Diffstat (limited to 'src')
-rw-r--r--src/fontset.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/fontset.c b/src/fontset.c
index 3f89cb86866..a343e27e510 100644
--- a/src/fontset.c
+++ b/src/fontset.c
@@ -872,7 +872,7 @@ face_for_char (f, face, c, pos, object)
872 int c, pos; 872 int c, pos;
873 Lisp_Object object; 873 Lisp_Object object;
874{ 874{
875 Lisp_Object fontset, rfont_def; 875 Lisp_Object fontset, rfont_def, charset;
876 int face_id; 876 int face_id;
877 int id; 877 int id;
878 878
@@ -884,11 +884,12 @@ face_for_char (f, face, c, pos, object)
884 xassert (!BASE_FONTSET_P (fontset)); 884 xassert (!BASE_FONTSET_P (fontset));
885 885
886 if (pos < 0) 886 if (pos < 0)
887 id = -1; 887 {
888 id = -1;
889 charset = Qnil;
890 }
888 else 891 else
889 { 892 {
890 Lisp_Object charset;
891
892 charset = Fget_char_property (make_number (pos), Qcharset, object); 893 charset = Fget_char_property (make_number (pos), Qcharset, object);
893 if (NILP (charset)) 894 if (NILP (charset))
894 id = -1; 895 id = -1;
@@ -903,6 +904,7 @@ face_for_char (f, face, c, pos, object)
903 } 904 }
904 } 905 }
905 906
907 font_add_log ("finding a font for", Fcons (make_number (c), charset), Qnil);
906 rfont_def = fontset_font (fontset, c, face, id); 908 rfont_def = fontset_font (fontset, c, face, id);
907 if (VECTORP (rfont_def)) 909 if (VECTORP (rfont_def))
908 { 910 {