HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06b6829
)
(x-resolve-font-name): Allow symbol as FACE arg.
author
Richard M. Stallman
<rms@gnu.org>
Sat, 29 May 1993 04:36:40 +0000
(
04:36
+0000)
committer
Richard M. Stallman
<rms@gnu.org>
Sat, 29 May 1993 04:36:40 +0000
(
04:36
+0000)
Allow t as FRAME arg.
lisp/faces.el
patch
|
blob
|
blame
|
history
diff --git
a/lisp/faces.el
b/lisp/faces.el
index
d609538
..
4eb7db8
100644
(file)
--- a/
lisp/faces.el
+++ b/
lisp/faces.el
@@
-420,6
+420,10
@@
If PATTERN is nil, return the name of the frame's base font, which never
contains wildcards.
Given optional arguments FACE and FRAME, try to return a font which is
also the same size as FACE on FRAME."
+ (or (symbolp face)
+ (setq face (face-name face)))
+ (and (eq frame t)
+ (setq frame nil))
(if pattern
(let ((fonts (x-list-fonts pattern face frame)))
(or fonts