Function: face-id

face-id is a byte-compiled function defined in faces.el.gz.

Signature

(face-id FACE &optional FRAME)

Documentation

Return the internal ID of face with name FACE.

If FACE is a face-alias, return the ID of the target face. The optional argument FRAME is ignored, since the internal face ID of a face name is the same for all frames.

View in manual

Source Code

;; Defined in /usr/src/emacs/lisp/faces.el.gz
;; The ID returned is not to be confused with the internally used IDs
;; of realized faces.  The ID assigned to Lisp faces is used to
;; support faces in display table entries.

(defun face-id (face &optional _frame)
  "Return the internal ID of face with name FACE.
If FACE is a face-alias, return the ID of the target face.
The optional argument FRAME is ignored, since the internal face ID
of a face name is the same for all frames."
  (check-face face)
  (or (get face 'face)
      (face-id (get face 'face-alias))))