Function: indent-bars--window-font-space-width
indent-bars--window-font-space-width is a natively compiled function
defined in indent-bars.el.
Signature
(indent-bars--window-font-space-width &optional WIN)
Documentation
Return the space width of the font in window WIN.
If WIN is not provided, the selected window is used. This works for both variable pitch and fixed pitch fonts.
Source Code
;; Defined in /nix/store/zkcdcnmcj3605fj09x584bf58d85brax-emacs-packages-deps/share/emacs/site-lisp/elpa/indent-bars-1.0.1/indent-bars.el
(defun indent-bars--window-font-space-width (&optional win)
"Return the space width of the font in window WIN.
If WIN is not provided, the selected window is used. This works for
both variable pitch and fixed pitch fonts."
(let ((win (or win (selected-window))))
(with-selected-window win
(or (when-let* (( (fboundp 'font-info))
(ff (face-font 'default))
(fi (font-info ff))
(space-width (aref fi 10)))
(and (natnump space-width) (> space-width 0) space-width))
(window-font-width)))))