Function: ruler-mode-text-scaled-width

ruler-mode-text-scaled-width is a byte-compiled function defined in ruler-mode.el.gz.

Signature

(ruler-mode-text-scaled-width WIDTH)

Documentation

Compute scaled text width according to current font scaling.

Convert a WIDTH of char units into a text-scaled char width units, for example window-hscroll.

Source Code

;; Defined in /usr/src/emacs/lisp/ruler-mode.el.gz
(defun ruler-mode-text-scaled-width (width)
  "Compute scaled text width according to current font scaling.
Convert a WIDTH of char units into a text-scaled char width units,
for example `window-hscroll'."
  (/ (* width (frame-char-width)) (default-font-width)))