Function: htmlize-face-to-fstruct

htmlize-face-to-fstruct is a byte-compiled function defined in htmlize.el.

Signature

(htmlize-face-to-fstruct FACE)

Source Code

;; Defined in ~/.emacs.d/elpa/htmlize-20250724.1703/htmlize.el
(defun htmlize-face-to-fstruct (face)
  (let* ((face-list (or (and (symbolp face)
                             (cdr (assq face face-remapping-alist)))
                        (list face)))
         (fstruct (htmlize-merge-faces
                   (mapcar (lambda (face)
                             (if (symbolp face)
                                 (or (htmlize-get-override-fstruct face)
                                     (htmlize-face-to-fstruct-1 face))
                               (htmlize-attrlist-to-fstruct face)))
                           (nreverse face-list)))))
    (when (symbolp face)
      (setf (htmlize-fstruct-css-name fstruct) (htmlize-face-css-name face)))
    fstruct))