Function: pixel-line-height
pixel-line-height is a byte-compiled function defined in
pixel-scroll.el.gz.
Signature
(pixel-line-height &optional POS)
Documentation
Return height in pixels of text line at POS in the selected window.
When POS is nil or negative, height of the first line or the coming unseen line above the first line, respectively, is provided.
Source Code
;; Defined in /usr/src/emacs/lisp/pixel-scroll.el.gz
(defun pixel-line-height (&optional pos)
"Return height in pixels of text line at POS in the selected window.
When POS is nil or negative, height of the first line or the coming
unseen line above the first line, respectively, is provided."
(or pos (setq pos (window-start)))
(when (< pos 0)
(setq pos (pixel-point-at-unseen-line)))
(let ((vs1 (window-vscroll nil t))
height)
(set-window-vscroll nil 0 t)
(save-excursion
(goto-char pos)
(setq height (pixel-visual-line-height))) ; line-pixel-height, frame-char-height
(set-window-vscroll nil vs1 t)
height))