Function: ghostel--cell-height

ghostel--cell-height is a natively compiled function defined in ghostel.el.

Signature

(ghostel--cell-height)

Documentation

Return the terminal cell height in logical pixels.

The buffer's default font height plus its line-spacing in pixels. Redisplay scales a float line-spacing by the frame's char height, not by the buffer's font height.

Source Code

;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel.el
(defun ghostel--cell-height ()
  "Return the terminal cell height in logical pixels.
The buffer's default font height plus its `line-spacing' in pixels.
Redisplay scales a float `line-spacing' by the frame's char height, not
by the buffer's font height."
  (+ (default-font-height)
     (cond ((not (display-graphic-p)) 0)
           ((integerp line-spacing) (max 0 line-spacing))
           ((floatp line-spacing)
            (max 0 (round (* line-spacing (frame-char-height)))))
           (t 0))))