Function: org--get-display-dpi

org--get-display-dpi is a byte-compiled function defined in org.el.gz.

Signature

(org--get-display-dpi)

Documentation

Get the DPI of the display.

The function assumes that the display has the same pixel width in the horizontal and vertical directions.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org--get-display-dpi ()
  "Get the DPI of the display.
The function assumes that the display has the same pixel width in
the horizontal and vertical directions."
  (if (display-graphic-p)
      (round (/ (display-pixel-height)
		(/ (display-mm-height) 25.4)))
    (error "Attempt to calculate the dpi of a non-graphic display")))