Function: hfy-css-name
hfy-css-name is a byte-compiled function defined in htmlfontify.el.gz.
Signature
(hfy-css-name FN)
Documentation
Strip the boring bits from a font-name FN and return a CSS style name.
Source Code
;; Defined in /usr/src/emacs/lisp/htmlfontify.el.gz
(defun hfy-css-name (fn)
"Strip the boring bits from a font-name FN and return a CSS style name."
;;(message "hfy-css-name");;DBUG
(let ((face-name (hfy-face-or-def-to-name fn)))
(if (or (string-match "font-lock-\\(.*\\)" face-name)
(string-match "cperl-\\(.*\\)" face-name)
(string-match "^[Ii]nfo-\\(.*\\)" face-name))
(progn
(setq face-name (match-string 1 face-name))
(if (string-match "\\(.*\\)-face\\'" face-name)
(setq face-name (match-string 1 face-name)))
face-name)
face-name)) )