Mercurial > emacs
comparison src/xfaces.c @ 90718:f1d13e615070
Merge from emacs--devo--0
Patches applied:
* emacs--devo--0 (patch 523-544)
- Update from CVS
- Merge from gnus--rel--5.10
* gnus--rel--5.10 (patch 168-171)
- Update from CVS
- Merge from emacs--devo--0
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-150
author | Miles Bader <miles@gnu.org> |
---|---|
date | Thu, 07 Dec 2006 04:14:14 +0000 |
parents | dbe3f29e61d6 cd686b5380c4 |
children | 95d0cdf160ea |
comparison
equal
deleted
inserted
replaced
90717:06937e972ad0 | 90718:f1d13e615070 |
---|---|
7532 face = realize_face (c, attrs, DEFAULT_FACE_ID); | 7532 face = realize_face (c, attrs, DEFAULT_FACE_ID); |
7533 | 7533 |
7534 #ifdef HAVE_WINDOW_SYSTEM | 7534 #ifdef HAVE_WINDOW_SYSTEM |
7535 #ifdef HAVE_X_WINDOWS | 7535 #ifdef HAVE_X_WINDOWS |
7536 if (face->font != FRAME_FONT (f)) | 7536 if (face->font != FRAME_FONT (f)) |
7537 /* As the font specified for the frame was not acceptable as a | 7537 { |
7538 font for the default face (perhaps because auto-scaled fonts | 7538 /* This can happen when making a frame on a display that does |
7539 are rejected), we must adjust the frame font. */ | 7539 not support the default font. */ |
7540 x_set_font (f, build_string (face->font_name), Qnil); | 7540 if (!face->font) |
7541 return 0; | |
7542 | |
7543 /* Otherwise, the font specified for the frame was not | |
7544 acceptable as a font for the default face (perhaps because | |
7545 auto-scaled fonts are rejected), so we must adjust the frame | |
7546 font. */ | |
7547 x_set_font (f, build_string (face->font_name), Qnil); | |
7548 } | |
7541 #endif /* HAVE_X_WINDOWS */ | 7549 #endif /* HAVE_X_WINDOWS */ |
7542 #endif /* HAVE_WINDOW_SYSTEM */ | 7550 #endif /* HAVE_WINDOW_SYSTEM */ |
7543 return 1; | 7551 return 1; |
7544 } | 7552 } |
7545 | 7553 |