aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2009-01-09 14:11:12 +0000
committerChong Yidong2009-01-09 14:11:12 +0000
commit95ac8fbdcade74dd6030e882d83f8afca18851ad (patch)
treecc809d700e4c4a89880ae77bb78cb33599100816
parent45c17811844c8568f6f231bd958196ef43fa83f6 (diff)
downloademacs-95ac8fbdcade74dd6030e882d83f8afca18851ad.tar.gz
emacs-95ac8fbdcade74dd6030e882d83f8afca18851ad.zip
(face-valid-attribute-values): Use string as value for :family
attribute. Now, font-family-list returns a list of strings. (x-font-family-list): Obsolete compatibility version of function from xfaces.c.
-rw-r--r--lisp/faces.el14
1 files changed, 13 insertions, 1 deletions
diff --git a/lisp/faces.el b/lisp/faces.el
index 20648bc574d..4c98423a8a1 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -988,7 +988,7 @@ an integer value."
988 (case attribute 988 (case attribute
989 (:family 989 (:family
990 (if (window-system frame) 990 (if (window-system frame)
991 (mapcar #'(lambda (x) (cons (symbol-name x) x)) 991 (mapcar (lambda (x) (cons x x))
992 (font-family-list)) 992 (font-family-list))
993 ;; Only one font on TTYs. 993 ;; Only one font on TTYs.
994 (list (cons "default" "default")))) 994 (list (cons "default" "default"))))
@@ -2681,6 +2681,18 @@ If that can't be done, return nil."
2681 (internal-frob-font-slant font "i"))) 2681 (internal-frob-font-slant font "i")))
2682(make-obsolete 'x-make-font-bold-italic 'make-face-bold-italic "21.1") 2682(make-obsolete 'x-make-font-bold-italic 'make-face-bold-italic "21.1")
2683 2683
2684(defun x-font-family-list (&optional frame)
2685 "Return a list of available font families on FRAME.
2686If FRAME is omitted or nil, use the selected frame.
2687Value is a list of conses (FAMILY . FIXED-P) where FAMILY
2688is a font family, and FIXED-P is non-nil if fonts of that family
2689are fixed-pitch."
2690 (if (fboundp 'font-family-list)
2691 (mapcar (lambda (family) (cons family nil))
2692 (font-family-list))
2693 '(("default" . t))))
2694(make-obsolete 'x-font-family-list 'font-family-list "23.1")
2695
2684(provide 'faces) 2696(provide 'faces)
2685 2697
2686;; arch-tag: 19a4759f-2963-445f-b004-425b9aadd7d6 2698;; arch-tag: 19a4759f-2963-445f-b004-425b9aadd7d6