Function: preview-scale-from-face

preview-scale-from-face is a byte-compiled function defined in preview.el.

Signature

(preview-scale-from-face)

Documentation

Calculate preview scale from preview-reference-face.

This calculates the scale of EPS images from a document assumed to have a default font size given by function preview-document-pt so that they match the reference face in height.

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/preview.el
(defun preview-scale-from-face ()
  "Calculate preview scale from `preview-reference-face'.
This calculates the scale of EPS images from a document assumed
to have a default font size given by function `preview-document-pt'
so that they match the reference face in height."
  (let ((d (/ (preview-inherited-face-attribute 'preview-reference-face :height
                                                'default)
              10.0)))
    (lambda () (/ d (preview-document-pt)))))