Function: display-mm-height
display-mm-height is a byte-compiled function defined in frame.el.gz.
Signature
(display-mm-height &optional DISPLAY)
Documentation
Return the height of DISPLAY's screen in millimeters.
If the information is unavailable, this function returns nil. DISPLAY can be a display name or a frame. If DISPLAY is omitted or nil, it defaults to the selected frame's display.
You can override what the system thinks the result should be by
adding an entry to display-mm-dimensions-alist.
For graphical terminals, note that on "multi-monitor" setups this
refers to the height in millimeters for all physical monitors
associated with DISPLAY. To get information for each physical
monitor, use display-monitor-attributes-list.
Probably introduced at or before Emacs version 21.1.
Source Code
;; Defined in /usr/src/emacs/lisp/frame.el.gz
(defun display-mm-height (&optional display)
"Return the height of DISPLAY's screen in millimeters.
If the information is unavailable, this function returns nil.
DISPLAY can be a display name or a frame.
If DISPLAY is omitted or nil, it defaults to the selected frame's display.
You can override what the system thinks the result should be by
adding an entry to `display-mm-dimensions-alist'.
For graphical terminals, note that on \"multi-monitor\" setups this
refers to the height in millimeters for all physical monitors
associated with DISPLAY. To get information for each physical
monitor, use `display-monitor-attributes-list'."
(and (memq (framep-on-display display) '(x w32 ns))
(or (cddr (assoc (or display (frame-parameter nil 'display))
display-mm-dimensions-alist))
(cddr (assoc t display-mm-dimensions-alist))
(x-display-mm-height display))))