(x-resolve-font-name): Allow symbol as FACE arg.
authorRichard M. Stallman <rms@gnu.org>
Sat, 29 May 1993 04:36:40 +0000 (04:36 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 29 May 1993 04:36:40 +0000 (04:36 +0000)
Allow t as FRAME arg.

lisp/faces.el

index d609538..4eb7db8 100644 (file)
@@ -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