Function: hfy-size
hfy-size is a byte-compiled function defined in htmlfontify.el.gz.
Signature
(hfy-size HEIGHT)
Documentation
Derive a CSS font-size specifier from an Emacs font :height attribute HEIGHT.
Does not cope with the case where height is a function to be applied to the height of the underlying font.
Source Code
;; Defined in /usr/src/emacs/lisp/htmlfontify.el.gz
(defun hfy-size (height)
"Derive a CSS font-size specifier from an Emacs font :height attribute HEIGHT.
Does not cope with the case where height is a function to be applied to
the height of the underlying font."
;; In ttys, the default face has :height == 1.
(and (not (display-graphic-p)) (equal 1 height) (setq height 100))
(list
(cond
;;(t (cons "font-size" ": 1em"))
((floatp height)
(cons "font-size" (format "%d%%" (* (* hfy-font-zoom height) 100))))
((integerp height)
(cons "font-size" (format "%dpt" (/ (* hfy-font-zoom height) 10 )))) )) )