Function: text-scale-max-amount

text-scale-max-amount is a byte-compiled function defined in face-remap.el.gz.

Signature

(text-scale-max-amount)

Documentation

Return the maximum amount of text-scaling we allow.

Source Code

;; Defined in /usr/src/emacs/lisp/face-remap.el.gz
(defun text-scale-max-amount ()
  "Return the maximum amount of text-scaling we allow."
  ;; The display engine uses a 16-bit short for pixel-width of
  ;; characters, thus the 0xffff limitation.  It also makes no sense
  ;; to have characters wider than the display.
  (log (/ (min (display-pixel-width) #xffff)
          (frame-char-width))
       text-scale-mode-step))