aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/xfaces.c10
2 files changed, 16 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index dff5c16ef0e..afaa1c3af67 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12006-05-10 Kenichi Handa <handa@m17n.org>
2
3 * xfaces.c (realize_default_face) [HAVE_X_WINDOWS]: If the font
4 chosen for the default face was different from the frame font,
5 adjust the frame font.
6
12006-05-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 72006-05-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2 8
3 * image.c (Qduration) [MAC_OS]: Undo previous change. 9 * image.c (Qduration) [MAC_OS]: Undo previous change.
diff --git a/src/xfaces.c b/src/xfaces.c
index a0bb97f63f4..a5c5a21f585 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -7072,6 +7072,16 @@ realize_default_face (f)
7072 check_lface (lface); 7072 check_lface (lface);
7073 bcopy (XVECTOR (lface)->contents, attrs, sizeof attrs); 7073 bcopy (XVECTOR (lface)->contents, attrs, sizeof attrs);
7074 face = realize_face (c, attrs, 0, NULL, DEFAULT_FACE_ID); 7074 face = realize_face (c, attrs, 0, NULL, DEFAULT_FACE_ID);
7075
7076#ifdef HAVE_WINDOW_SYSTEM
7077#ifdef HAVE_X_WINDOWS
7078 if (face->font != FRAME_FONT (f))
7079 /* As the font specified for the frame was not acceptable as a
7080 font for the default face (perhaps because auto-scaled fonts
7081 are rejected), we must adjust the frame font. */
7082 x_set_font (f, build_string (face->font_name), Qnil);
7083#endif /* HAVE_X_WINDOWS */
7084#endif /* HAVE_WINDOW_SYSTEM */
7075 return 1; 7085 return 1;
7076} 7086}
7077 7087