Function: default-line-height
default-line-height is a byte-compiled function defined in
simple.el.gz.
Signature
(default-line-height)
Documentation
Return the pixel height of current buffer's default-face text line.
The value includes line-spacing, if any, defined for the buffer
or the frame.
This function uses the definition of the default face for the currently
selected frame.
Source Code
;; Defined in /usr/src/emacs/lisp/simple.el.gz
(defun default-line-height ()
"Return the pixel height of current buffer's default-face text line.
The value includes `line-spacing', if any, defined for the buffer
or the frame.
This function uses the definition of the default face for the currently
selected frame."
(let ((dfh (default-font-height))
(lsp (if (display-graphic-p)
(or line-spacing
(default-value 'line-spacing)
(frame-parameter nil 'line-spacing)
0)
0)))
(if (floatp lsp)
(setq lsp (truncate (* (frame-char-height) lsp))))
(+ dfh lsp)))