Function: posframe--get-font-height
posframe--get-font-height is a byte-compiled function defined in
posframe.el.
Signature
(posframe--get-font-height POSITION)
Documentation
Get the font's height at POSITION.
Source Code
;; Defined in ~/.emacs.d/elpa/posframe-20260415.14/posframe.el
(defun posframe--get-font-height (position)
"Get the font's height at POSITION."
(if (eq position (car posframe--last-font-height-info))
(cdr posframe--last-font-height-info)
(let* ((font (when (and (integerp position)
(not (= position 1)))
(font-at (if (>= position (point-max))
(- (point-max) 1)
position))))
(height (when (integerp position)
(if (or (= position 1) (not (fontp font)))
(default-line-height)
(aref (font-info font) 3)))))
(setq posframe--last-font-height-info
(cons position height))
height)))