Function: hfy-face-resolve-face

hfy-face-resolve-face is a byte-compiled function defined in htmlfontify.el.gz.

Signature

(hfy-face-resolve-face FN)

Documentation

For FN return a face specification.

FN may be either a face or a face specification. If the latter, then the specification is returned unchanged.

Source Code

;; Defined in /usr/src/emacs/lisp/htmlfontify.el.gz
(defun hfy-face-resolve-face (fn)
  "For FN return a face specification.
FN may be either a face or a face specification.  If the latter,
then the specification is returned unchanged."
  (cond
   ((facep fn)
    (hfy-face-attr-for-class fn hfy-display-class))
   ;; FIXME: is this necessary? Faces can be symbols, but
   ;; not symbols referring to other symbols?
   ((and (symbolp fn)
         (facep (symbol-value fn)))
    (hfy-face-attr-for-class
     (symbol-value fn) hfy-display-class))
   (t fn)))