Function: window-font-height

window-font-height is a byte-compiled function defined in window.el.gz.

Signature

(window-font-height &optional WINDOW FACE)

Documentation

Return character height for the font of FACE used in WINDOW.

WINDOW must be a live window and defaults to the selected one.

If FACE is nil or omitted, the default face is used. If FACE is remapped (see face-remapping-alist), the function returns the information for the remapped face.

Probably introduced at or before Emacs version 25.1.

Source Code

;; Defined in /usr/src/emacs/lisp/window.el.gz
(defun window-font-height (&optional window face)
   "Return character height for the font of FACE used in WINDOW.
WINDOW must be a live window and defaults to the selected one.

If FACE is nil or omitted, the default face is used.  If FACE is
remapped (see `face-remapping-alist'), the function returns the
information for the remapped face."
   (with-selected-window (window-normalize-window window t)
     (if (display-multi-font-p)
	 (let* ((face (if face face 'default))
		(info (font-info (face-font face))))
	   (aref info 3))
       (frame-char-height))))