aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2007-12-03 13:53:55 +0000
committerKenichi Handa2007-12-03 13:53:55 +0000
commitdb3aa8c34d4557be69096ee45580dcbf268c9f97 (patch)
tree751a16054a9c18b57bbe4d72c2a7c7d3f2c8a765 /src
parentf4b7ee0b24272fb408a0f9be770b32fb737d087a (diff)
downloademacs-db3aa8c34d4557be69096ee45580dcbf268c9f97.tar.gz
emacs-db3aa8c34d4557be69096ee45580dcbf268c9f97.zip
Include "font.h" unconditionally.
(choose_face_font): Accept new form of font-spec.
Diffstat (limited to 'src')
-rw-r--r--src/xfaces.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/xfaces.c b/src/xfaces.c
index 65e70bdd7c4..f43054fe06a 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -250,9 +250,7 @@ Boston, MA 02110-1301, USA. */
250#include "termchar.h" 250#include "termchar.h"
251 251
252#ifdef HAVE_WINDOW_SYSTEM 252#ifdef HAVE_WINDOW_SYSTEM
253#ifdef USE_FONT_BACKEND
254#include "font.h" 253#include "font.h"
255#endif /* USE_FONT_BACKEND */
256#endif /* HAVE_WINDOW_SYSTEM */ 254#endif /* HAVE_WINDOW_SYSTEM */
257 255
258#ifdef HAVE_X_WINDOWS 256#ifdef HAVE_X_WINDOWS
@@ -7277,9 +7275,8 @@ face_fontset (attrs)
7277 (if specified). 7275 (if specified).
7278 7276
7279 When we are choosing a font for ASCII characters, FONT-SPEC is 7277 When we are choosing a font for ASCII characters, FONT-SPEC is
7280 always nil. Otherwise FONT-SPEC is a list 7278 always nil. Otherwise FONT-SPEC is an object created by
7281 [ FAMILY WEIGHT SLANT SWIDTH ADSTYLE REGISTRY ] 7279 `font-spec' or a string specifying a font name pattern.
7282 or a string specifying a font name pattern.
7283 7280
7284 If NEEDS_OVERSTRIKE is not NULL, a boolean is returned in it to 7281 If NEEDS_OVERSTRIKE is not NULL, a boolean is returned in it to
7285 indicate whether the resulting font should be drawn using 7282 indicate whether the resulting font should be drawn using
@@ -7318,10 +7315,12 @@ choose_face_font (f, attrs, font_spec, needs_overstrike)
7318 if (VECTORP (font_spec)) 7315 if (VECTORP (font_spec))
7319 { 7316 {
7320 pattern = Qnil; 7317 pattern = Qnil;
7321 if (STRINGP (AREF (font_spec, FONT_SPEC_FAMILY_INDEX))) 7318 if (! NILP (AREF (font_spec, FONT_FAMILY_INDEX)))
7322 family = Fcons (AREF (font_spec, FONT_SPEC_FAMILY_INDEX), family); 7319 family = Fcons (SYMBOL_NAME (AREF (font_spec, FONT_FAMILY_INDEX)),
7323 adstyle = AREF (font_spec, FONT_SPEC_ADSTYLE_INDEX); 7320 family);
7324 registry = Fcons (AREF (font_spec, FONT_SPEC_REGISTRY_INDEX), Qnil); 7321 adstyle = AREF (font_spec, FONT_ADSTYLE_INDEX);
7322 registry = Fcons (SYMBOL_NAME (AREF (font_spec, FONT_REGISTRY_INDEX)),
7323 Qnil);
7325 } 7324 }
7326 else if (STRINGP (font_spec)) 7325 else if (STRINGP (font_spec))
7327 { 7326 {