Function: frame-char-size
frame-char-size is a byte-compiled function defined in window.el.gz.
Signature
(frame-char-size &optional WINDOW-OR-FRAME HORIZONTAL)
Documentation
Return the value of frame-char-height for WINDOW-OR-FRAME.
If WINDOW-OR-FRAME is a live frame, return the value of
frame-char-height for that frame. If WINDOW-OR-FRAME is a
valid window, return the value of frame-char-height for that
window's frame. In any other case, return the value of
frame-char-height for the selected frame.
Optional argument HORIZONTAL non-nil means to return the value of
frame-char-width for WINDOW-OR-FRAME.
Source Code
;; Defined in /usr/src/emacs/lisp/window.el.gz
;; Maybe this should go to frame.el.
(defun frame-char-size (&optional window-or-frame horizontal)
"Return the value of `frame-char-height' for WINDOW-OR-FRAME.
If WINDOW-OR-FRAME is a live frame, return the value of
`frame-char-height' for that frame. If WINDOW-OR-FRAME is a
valid window, return the value of `frame-char-height' for that
window's frame. In any other case, return the value of
`frame-char-height' for the selected frame.
Optional argument HORIZONTAL non-nil means to return the value of
`frame-char-width' for WINDOW-OR-FRAME."
(let ((frame
(cond
((window-valid-p window-or-frame)
(window-frame window-or-frame))
((frame-live-p window-or-frame)
window-or-frame)
(t (selected-frame)))))
(if horizontal
(frame-char-width frame)
(frame-char-height frame))))