comparison src/objects.c @ 20:859a2309aef8 r19-15b93

Import from CVS: tag r19-15b93
author cvs
date Mon, 13 Aug 2007 08:50:05 +0200
parents ac2d302a0011
children 131b0175ea99
comparison
equal deleted inserted replaced
19:ac1f612d5250 20:859a2309aef8
134 !d ? LISP_HASH (obj) 134 !d ? LISP_HASH (obj)
135 : DEVMETH_OR_GIVEN (d, color_instance_hash, (c, depth), 135 : DEVMETH_OR_GIVEN (d, color_instance_hash, (c, depth),
136 LISP_HASH (obj))); 136 LISP_HASH (obj)));
137 } 137 }
138 138
139 DEFUN ("make-color-instance", Fmake_color_instance, Smake_color_instance, 139 DEFUN ("make-color-instance", Fmake_color_instance, 1, 3, 0, /*
140 1, 3, 0 /*
141 Creates a new `color-instance' object of the specified color. 140 Creates a new `color-instance' object of the specified color.
142 DEVICE specifies the device this object applies to and defaults to the 141 DEVICE specifies the device this object applies to and defaults to the
143 selected device. An error is signalled if the color is unknown or cannot 142 selected device. An error is signalled if the color is unknown or cannot
144 be allocated; however, if NOERROR is non-nil, nil is simply returned in 143 be allocated; however, if NOERROR is non-nil, nil is simply returned in
145 this case. (And if NOERROR is other than t, a warning may be issued.) 144 this case. (And if NOERROR is other than t, a warning may be issued.)
147 The returned object is a normal, first-class lisp object. The way you 146 The returned object is a normal, first-class lisp object. The way you
148 `deallocate' the color is the way you deallocate any other lisp object: 147 `deallocate' the color is the way you deallocate any other lisp object:
149 you drop all pointers to it and allow it to be garbage collected. When 148 you drop all pointers to it and allow it to be garbage collected. When
150 these objects are GCed, the underlying window-system data (e.g. X object) 149 these objects are GCed, the underlying window-system data (e.g. X object)
151 is deallocated as well. 150 is deallocated as well.
152 */ ) 151 */
153 (name, device, no_error) 152 (name, device, no_error))
154 Lisp_Object name, device, no_error;
155 { 153 {
156 struct Lisp_Color_Instance *c; 154 struct Lisp_Color_Instance *c;
157 Lisp_Object val; 155 Lisp_Object val;
158 int retval = 0; 156 int retval = 0;
159 157
176 174
177 XSETCOLOR_INSTANCE (val, c); 175 XSETCOLOR_INSTANCE (val, c);
178 return val; 176 return val;
179 } 177 }
180 178
181 DEFUN ("color-instance-p", Fcolor_instance_p, Scolor_instance_p, 1, 1, 0 /* 179 DEFUN ("color-instance-p", Fcolor_instance_p, 1, 1, 0, /*
182 Return non-nil if OBJECT is a color instance. 180 Return non-nil if OBJECT is a color instance.
183 */ ) 181 */
184 (object) 182 (object))
185 Lisp_Object object;
186 { 183 {
187 return (COLOR_INSTANCEP (object) ? Qt : Qnil); 184 return (COLOR_INSTANCEP (object) ? Qt : Qnil);
188 } 185 }
189 186
190 DEFUN ("color-instance-name", Fcolor_instance_name, Scolor_instance_name, 187 DEFUN ("color-instance-name", Fcolor_instance_name, 1, 1, 0, /*
191 1, 1, 0 /*
192 Return the name used to allocate COLOR-INSTANCE. 188 Return the name used to allocate COLOR-INSTANCE.
193 */ ) 189 */
194 (color_instance) 190 (color_instance))
195 Lisp_Object color_instance;
196 { 191 {
197 CHECK_COLOR_INSTANCE (color_instance); 192 CHECK_COLOR_INSTANCE (color_instance);
198 return (XCOLOR_INSTANCE (color_instance)->name); 193 return (XCOLOR_INSTANCE (color_instance)->name);
199 } 194 }
200 195
201 DEFUN ("color-instance-rgb-components", Fcolor_instance_rgb_components, 196 DEFUN ("color-instance-rgb-components", Fcolor_instance_rgb_components, 1, 1, 0, /*
202 Scolor_instance_rgb_components, 1, 1, 0 /*
203 Return a three element list containing the red, green, and blue 197 Return a three element list containing the red, green, and blue
204 color components of COLOR-INSTANCE, or nil if unknown. 198 color components of COLOR-INSTANCE, or nil if unknown.
205 */ ) 199 */
206 (color_instance) 200 (color_instance))
207 Lisp_Object color_instance;
208 { 201 {
209 struct Lisp_Color_Instance *c; 202 struct Lisp_Color_Instance *c;
210 203
211 CHECK_COLOR_INSTANCE (color_instance); 204 CHECK_COLOR_INSTANCE (color_instance);
212 c = XCOLOR_INSTANCE (color_instance); 205 c = XCOLOR_INSTANCE (color_instance);
217 return MAYBE_LISP_DEVMETH (XDEVICE (c->device), 210 return MAYBE_LISP_DEVMETH (XDEVICE (c->device),
218 color_instance_rgb_components, 211 color_instance_rgb_components,
219 (c)); 212 (c));
220 } 213 }
221 214
222 DEFUN ("valid-color-name-p", Fvalid_color_name_p, Svalid_color_name_p, 215 DEFUN ("valid-color-name-p", Fvalid_color_name_p, 1, 2, 0, /*
223 1, 2, 0 /*
224 Return true if COLOR names a valid color for the current device. 216 Return true if COLOR names a valid color for the current device.
225 217
226 Valid color names for X are listed in the file /usr/lib/X11/rgb.txt, or 218 Valid color names for X are listed in the file /usr/lib/X11/rgb.txt, or
227 whatever the equivalent is on your system. 219 whatever the equivalent is on your system.
228 220
229 Valid color names for TTY are those which have an ISO 6429 (ANSI) sequence. 221 Valid color names for TTY are those which have an ISO 6429 (ANSI) sequence.
230 In addition to being a color this may be one of a number of attributes 222 In addition to being a color this may be one of a number of attributes
231 such as `blink'. 223 such as `blink'.
232 */ ) 224 */
233 (color, device) 225 (color, device))
234 Lisp_Object color, device;
235 { 226 {
236 struct device *d = decode_device (device); 227 struct device *d = decode_device (device);
237 228
238 CHECK_STRING (color); 229 CHECK_STRING (color);
239 return MAYBE_INT_DEVMETH (d, valid_color_name_p, (d, color)) ? Qt : Qnil; 230 return MAYBE_INT_DEVMETH (d, valid_color_name_p, (d, color)) ? Qt : Qnil;
317 { 308 {
318 return internal_hash (font_instance_truename_internal (obj, ERROR_ME_NOT), 309 return internal_hash (font_instance_truename_internal (obj, ERROR_ME_NOT),
319 depth + 1); 310 depth + 1);
320 } 311 }
321 312
322 DEFUN ("make-font-instance", Fmake_font_instance, Smake_font_instance, 313 DEFUN ("make-font-instance", Fmake_font_instance, 1, 3, 0, /*
323 1, 3, 0 /*
324 Creates a new `font-instance' object of the specified name. 314 Creates a new `font-instance' object of the specified name.
325 DEVICE specifies the device this object applies to and defaults to the 315 DEVICE specifies the device this object applies to and defaults to the
326 selected device. An error is signalled if the font is unknown or cannot 316 selected device. An error is signalled if the font is unknown or cannot
327 be allocated; however, if NOERROR is non-nil, nil is simply returned in 317 be allocated; however, if NOERROR is non-nil, nil is simply returned in
328 this case. 318 this case.
329 319
330 The returned object is a normal, first-class lisp object. The way you 320 The returned object is a normal, first-class lisp object. The way you
331 `deallocate' the font is the way you deallocate any other lisp object: 321 `deallocate' the font is the way you deallocate any other lisp object:
332 you drop all pointers to it and allow it to be garbage collected. When 322 you drop all pointers to it and allow it to be garbage collected. When
333 these objects are GCed, the underlying X data is deallocated as well. 323 these objects are GCed, the underlying X data is deallocated as well.
334 */ ) 324 */
335 (name, device, no_error) 325 (name, device, no_error))
336 Lisp_Object name, device, no_error;
337 { 326 {
338 struct Lisp_Font_Instance *f; 327 struct Lisp_Font_Instance *f;
339 Lisp_Object val; 328 Lisp_Object val;
340 int retval = 0; 329 int retval = 0;
341 Error_behavior errb = decode_error_behavior_flag (no_error); 330 Error_behavior errb = decode_error_behavior_flag (no_error);
368 357
369 XSETFONT_INSTANCE (val, f); 358 XSETFONT_INSTANCE (val, f);
370 return val; 359 return val;
371 } 360 }
372 361
373 DEFUN ("font-instance-p", Ffont_instance_p, Sfont_instance_p, 1, 1, 0 /* 362 DEFUN ("font-instance-p", Ffont_instance_p, 1, 1, 0, /*
374 Return non-nil if OBJECT is a font instance. 363 Return non-nil if OBJECT is a font instance.
375 */ ) 364 */
376 (object) 365 (object))
377 Lisp_Object object;
378 { 366 {
379 return (FONT_INSTANCEP (object) ? Qt : Qnil); 367 return (FONT_INSTANCEP (object) ? Qt : Qnil);
380 } 368 }
381 369
382 DEFUN ("font-instance-name", Ffont_instance_name, Sfont_instance_name, 1, 1, 0 /* 370 DEFUN ("font-instance-name", Ffont_instance_name, 1, 1, 0, /*
383 Return the name used to allocate FONT-INSTANCE. 371 Return the name used to allocate FONT-INSTANCE.
384 */ ) 372 */
385 (font_instance) 373 (font_instance))
386 Lisp_Object font_instance;
387 { 374 {
388 CHECK_FONT_INSTANCE (font_instance); 375 CHECK_FONT_INSTANCE (font_instance);
389 return (XFONT_INSTANCE (font_instance)->name); 376 return (XFONT_INSTANCE (font_instance)->name);
390 } 377 }
391 378
392 DEFUN ("font-instance-ascent", Ffont_instance_ascent, 379 DEFUN ("font-instance-ascent", Ffont_instance_ascent, 1, 1, 0, /*
393 Sfont_instance_ascent, 1, 1, 0 /*
394 Return the ascent in pixels of FONT-INSTANCE. 380 Return the ascent in pixels of FONT-INSTANCE.
395 The returned value is the maximum ascent for all characters in the font, 381 The returned value is the maximum ascent for all characters in the font,
396 where a character's ascent is the number of pixels above (and including) 382 where a character's ascent is the number of pixels above (and including)
397 the baseline. 383 the baseline.
398 */ ) 384 */
399 (font_instance) 385 (font_instance))
400 Lisp_Object font_instance;
401 { 386 {
402 CHECK_FONT_INSTANCE (font_instance); 387 CHECK_FONT_INSTANCE (font_instance);
403 return make_int (XFONT_INSTANCE (font_instance)->ascent); 388 return make_int (XFONT_INSTANCE (font_instance)->ascent);
404 } 389 }
405 390
406 DEFUN ("font-instance-descent", Ffont_instance_descent, 391 DEFUN ("font-instance-descent", Ffont_instance_descent, 1, 1, 0, /*
407 Sfont_instance_descent, 1, 1, 0 /*
408 Return the descent in pixels of FONT-INSTANCE. 392 Return the descent in pixels of FONT-INSTANCE.
409 The returned value is the maximum descent for all characters in the font, 393 The returned value is the maximum descent for all characters in the font,
410 where a character's descent is the number of pixels below the baseline. 394 where a character's descent is the number of pixels below the baseline.
411 (Many characters to do not have any descent. Typical characters with a 395 (Many characters to do not have any descent. Typical characters with a
412 descent are lowercase p and lowercase g.) 396 descent are lowercase p and lowercase g.)
413 */ ) 397 */
414 (font_instance) 398 (font_instance))
415 Lisp_Object font_instance;
416 { 399 {
417 CHECK_FONT_INSTANCE (font_instance); 400 CHECK_FONT_INSTANCE (font_instance);
418 return make_int (XFONT_INSTANCE (font_instance)->descent); 401 return make_int (XFONT_INSTANCE (font_instance)->descent);
419 } 402 }
420 403
421 DEFUN ("font-instance-width", Ffont_instance_width, 404 DEFUN ("font-instance-width", Ffont_instance_width, 1, 1, 0, /*
422 Sfont_instance_width, 1, 1, 0 /*
423 Return the width in pixels of FONT-INSTANCE. 405 Return the width in pixels of FONT-INSTANCE.
424 The returned value is the average width for all characters in the font. 406 The returned value is the average width for all characters in the font.
425 */ ) 407 */
426 (font_instance) 408 (font_instance))
427 Lisp_Object font_instance;
428 { 409 {
429 CHECK_FONT_INSTANCE (font_instance); 410 CHECK_FONT_INSTANCE (font_instance);
430 return make_int (XFONT_INSTANCE (font_instance)->width); 411 return make_int (XFONT_INSTANCE (font_instance)->width);
431 } 412 }
432 413
433 DEFUN ("font-instance-proportional-p", Ffont_instance_proportional_p, 414 DEFUN ("font-instance-proportional-p", Ffont_instance_proportional_p, 1, 1, 0, /*
434 Sfont_instance_proportional_p, 1, 1, 0 /*
435 Return whether FONT-INSTANCE is proportional. 415 Return whether FONT-INSTANCE is proportional.
436 This means that different characters in the font have different widths. 416 This means that different characters in the font have different widths.
437 */ ) 417 */
438 (font_instance) 418 (font_instance))
439 Lisp_Object font_instance;
440 { 419 {
441 CHECK_FONT_INSTANCE (font_instance); 420 CHECK_FONT_INSTANCE (font_instance);
442 return (XFONT_INSTANCE (font_instance)->proportional_p ? Qt : Qnil); 421 return (XFONT_INSTANCE (font_instance)->proportional_p ? Qt : Qnil);
443 } 422 }
444 423
449 struct Lisp_Font_Instance *f = XFONT_INSTANCE (font_instance); 428 struct Lisp_Font_Instance *f = XFONT_INSTANCE (font_instance);
450 return DEVMETH_OR_GIVEN (XDEVICE (f->device), font_instance_truename, 429 return DEVMETH_OR_GIVEN (XDEVICE (f->device), font_instance_truename,
451 (f, errb), f->name); 430 (f, errb), f->name);
452 } 431 }
453 432
454 DEFUN ("font-instance-truename", Ffont_instance_truename, 433 DEFUN ("font-instance-truename", Ffont_instance_truename, 1, 1, 0, /*
455 Sfont_instance_truename, 1, 1, 0 /*
456 Return the canonical name of FONT-INSTANCE. 434 Return the canonical name of FONT-INSTANCE.
457 Font names are patterns which may match any number of fonts, of which 435 Font names are patterns which may match any number of fonts, of which
458 the first found is used. This returns an unambiguous name for that font 436 the first found is used. This returns an unambiguous name for that font
459 (but not necessarily its only unambiguous name). 437 (but not necessarily its only unambiguous name).
460 */ ) 438 */
461 (font_instance) 439 (font_instance))
462 Lisp_Object font_instance;
463 { 440 {
464 CHECK_FONT_INSTANCE (font_instance); 441 CHECK_FONT_INSTANCE (font_instance);
465 return font_instance_truename_internal (font_instance, ERROR_ME); 442 return font_instance_truename_internal (font_instance, ERROR_ME);
466 } 443 }
467 444
468 DEFUN ("font-instance-properties", Ffont_instance_properties, 445 DEFUN ("font-instance-properties", Ffont_instance_properties, 1, 1, 0, /*
469 Sfont_instance_properties, 1, 1, 0 /*
470 Return the properties (an alist or nil) of FONT-INSTANCE. 446 Return the properties (an alist or nil) of FONT-INSTANCE.
471 */ ) 447 */
472 (font_instance) 448 (font_instance))
473 Lisp_Object font_instance;
474 { 449 {
475 struct Lisp_Font_Instance *f; 450 struct Lisp_Font_Instance *f;
476 451
477 CHECK_FONT_INSTANCE (font_instance); 452 CHECK_FONT_INSTANCE (font_instance);
478 f = XFONT_INSTANCE (font_instance); 453 f = XFONT_INSTANCE (font_instance);
479 454
480 return MAYBE_LISP_DEVMETH (XDEVICE (f->device), 455 return MAYBE_LISP_DEVMETH (XDEVICE (f->device),
481 font_instance_properties, (f)); 456 font_instance_properties, (f));
482 } 457 }
483 458
484 DEFUN ("list-fonts", Flist_fonts, Slist_fonts, 1, 2, 0 /* 459 DEFUN ("list-fonts", Flist_fonts, 1, 2, 0, /*
485 Return a list of font names matching the given pattern. 460 Return a list of font names matching the given pattern.
486 DEVICE specifies which device to search for names, and defaults to the 461 DEVICE specifies which device to search for names, and defaults to the
487 currently selected device. 462 currently selected device.
488 */ ) 463 */
489 (pattern, device) 464 (pattern, device))
490 Lisp_Object pattern, device;
491 { 465 {
492 CHECK_STRING (pattern); 466 CHECK_STRING (pattern);
493 XSETDEVICE (device, decode_device (device)); 467 XSETDEVICE (device, decode_device (device));
494 468
495 return MAYBE_LISP_DEVMETH (XDEVICE (device), list_fonts, (pattern, device)); 469 return MAYBE_LISP_DEVMETH (XDEVICE (device), list_fonts, (pattern, device));
651 625
652 COLOR_SPECIFIER_FACE (color) = face; 626 COLOR_SPECIFIER_FACE (color) = face;
653 COLOR_SPECIFIER_FACE_PROPERTY (color) = property; 627 COLOR_SPECIFIER_FACE_PROPERTY (color) = property;
654 } 628 }
655 629
656 DEFUN ("color-specifier-p", Fcolor_specifier_p, Scolor_specifier_p, 1, 1, 0 /* 630 DEFUN ("color-specifier-p", Fcolor_specifier_p, 1, 1, 0, /*
657 Return non-nil if OBJECT is a color specifier. 631 Return non-nil if OBJECT is a color specifier.
658 632
659 Valid instantiators for color specifiers are: 633 Valid instantiators for color specifiers are:
660 634
661 -- a string naming a color (e.g. under X this might be \"lightseagreen2\" 635 -- a string naming a color (e.g. under X this might be \"lightseagreen2\"
667 -- a vector of one or two elements: a face to inherit from, and 641 -- a vector of one or two elements: a face to inherit from, and
668 optionally a symbol naming which property of that face to inherit, 642 optionally a symbol naming which property of that face to inherit,
669 either `foreground' or `background' (if omitted, defaults to the same 643 either `foreground' or `background' (if omitted, defaults to the same
670 property that this color specifier is used for; if this specifier is 644 property that this color specifier is used for; if this specifier is
671 not part of a face, the instantiator would not be valid) 645 not part of a face, the instantiator would not be valid)
672 */ ) 646 */
673 (object) 647 (object))
674 Lisp_Object object;
675 { 648 {
676 return (COLOR_SPECIFIERP (object) ? Qt : Qnil); 649 return (COLOR_SPECIFIERP (object) ? Qt : Qnil);
677 } 650 }
678 651
679 652
789 762
790 FONT_SPECIFIER_FACE (font) = face; 763 FONT_SPECIFIER_FACE (font) = face;
791 FONT_SPECIFIER_FACE_PROPERTY (font) = property; 764 FONT_SPECIFIER_FACE_PROPERTY (font) = property;
792 } 765 }
793 766
794 DEFUN ("font-specifier-p", Ffont_specifier_p, Sfont_specifier_p, 1, 1, 0 /* 767 DEFUN ("font-specifier-p", Ffont_specifier_p, 1, 1, 0, /*
795 Return non-nil if OBJECT is a font specifier. 768 Return non-nil if OBJECT is a font specifier.
796 769
797 Valid instantiators for font specifiers are: 770 Valid instantiators for font specifiers are:
798 771
799 -- a string naming a font (e.g. under X this might be 772 -- a string naming a font (e.g. under X this might be
802 -- a font instance (use that instance directly if the device matches, 775 -- a font instance (use that instance directly if the device matches,
803 or use the string that generated it) 776 or use the string that generated it)
804 -- a vector of no elements (only on TTY's; this means to set no font 777 -- a vector of no elements (only on TTY's; this means to set no font
805 at all, thus using the \"natural\" font of the terminal's text) 778 at all, thus using the \"natural\" font of the terminal's text)
806 -- a vector of one element (a face to inherit from) 779 -- a vector of one element (a face to inherit from)
807 */ ) 780 */
808 (object) 781 (object))
809 Lisp_Object object;
810 { 782 {
811 return (FONT_SPECIFIERP (object) ? Qt : Qnil); 783 return (FONT_SPECIFIERP (object) ? Qt : Qnil);
812 } 784 }
813 785
814 786
936 908
937 FACE_BOOLEAN_SPECIFIER_FACE (face_boolean) = face; 909 FACE_BOOLEAN_SPECIFIER_FACE (face_boolean) = face;
938 FACE_BOOLEAN_SPECIFIER_FACE_PROPERTY (face_boolean) = property; 910 FACE_BOOLEAN_SPECIFIER_FACE_PROPERTY (face_boolean) = property;
939 } 911 }
940 912
941 DEFUN ("face-boolean-specifier-p", Fface_boolean_specifier_p, 913 DEFUN ("face-boolean-specifier-p", Fface_boolean_specifier_p, 1, 1, 0, /*
942 Sface_boolean_specifier_p, 1, 1, 0 /*
943 Return non-nil if OBJECT is a face-boolean specifier. 914 Return non-nil if OBJECT is a face-boolean specifier.
944 915
945 Valid instantiators for face-boolean specifiers are 916 Valid instantiators for face-boolean specifiers are
946 917
947 -- t or nil 918 -- t or nil
949 optionally a symbol naming the property of that face to inherit from 920 optionally a symbol naming the property of that face to inherit from
950 (if omitted, defaults to the same property that this face-boolean 921 (if omitted, defaults to the same property that this face-boolean
951 specifier is used for; if this specifier is not part of a face, 922 specifier is used for; if this specifier is not part of a face,
952 the instantiator would not be valid), and optionally a value which, 923 the instantiator would not be valid), and optionally a value which,
953 if non-nil, means to invert the sense of the inherited property. 924 if non-nil, means to invert the sense of the inherited property.
954 */ ) 925 */
955 (object) 926 (object))
956 Lisp_Object object;
957 { 927 {
958 return (FACE_BOOLEAN_SPECIFIERP (object) ? Qt : Qnil); 928 return (FACE_BOOLEAN_SPECIFIERP (object) ? Qt : Qnil);
959 } 929 }
960 930
961 931
964 /************************************************************************/ 934 /************************************************************************/
965 935
966 void 936 void
967 syms_of_objects (void) 937 syms_of_objects (void)
968 { 938 {
969 defsubr (&Scolor_specifier_p); 939 DEFSUBR (Fcolor_specifier_p);
970 defsubr (&Sfont_specifier_p); 940 DEFSUBR (Ffont_specifier_p);
971 defsubr (&Sface_boolean_specifier_p); 941 DEFSUBR (Fface_boolean_specifier_p);
972 942
973 defsymbol (&Qcolor_instancep, "color-instance-p"); 943 defsymbol (&Qcolor_instancep, "color-instance-p");
974 defsubr (&Smake_color_instance); 944 DEFSUBR (Fmake_color_instance);
975 defsubr (&Scolor_instance_p); 945 DEFSUBR (Fcolor_instance_p);
976 defsubr (&Scolor_instance_name); 946 DEFSUBR (Fcolor_instance_name);
977 defsubr (&Scolor_instance_rgb_components); 947 DEFSUBR (Fcolor_instance_rgb_components);
978 defsubr (&Svalid_color_name_p); 948 DEFSUBR (Fvalid_color_name_p);
979 949
980 defsymbol (&Qfont_instancep, "font-instance-p"); 950 defsymbol (&Qfont_instancep, "font-instance-p");
981 defsubr (&Smake_font_instance); 951 DEFSUBR (Fmake_font_instance);
982 defsubr (&Sfont_instance_p); 952 DEFSUBR (Ffont_instance_p);
983 defsubr (&Sfont_instance_name); 953 DEFSUBR (Ffont_instance_name);
984 defsubr (&Sfont_instance_ascent); 954 DEFSUBR (Ffont_instance_ascent);
985 defsubr (&Sfont_instance_descent); 955 DEFSUBR (Ffont_instance_descent);
986 defsubr (&Sfont_instance_width); 956 DEFSUBR (Ffont_instance_width);
987 defsubr (&Sfont_instance_proportional_p); 957 DEFSUBR (Ffont_instance_proportional_p);
988 defsubr (&Sfont_instance_truename); 958 DEFSUBR (Ffont_instance_truename);
989 defsubr (&Sfont_instance_properties); 959 DEFSUBR (Ffont_instance_properties);
990 defsubr (&Slist_fonts); 960 DEFSUBR (Flist_fonts);
991 961
992 /* Qcolor, Qfont defined in general.c */ 962 /* Qcolor, Qfont defined in general.c */
993 defsymbol (&Qface_boolean, "face-boolean"); 963 defsymbol (&Qface_boolean, "face-boolean");
994 } 964 }
995 965