remapped (see `face-remapping-alist'), the function returns the
information for the remapped face."
(with-selected-window (window-normalize-window window t)
- (let* ((face (if face face 'default))
- (info (font-info (face-font face)))
+ (let* ((info (font-info (face-font (or face 'default))))
(width (aref info 11)))
(if (> width 0)
width
remapped (see `face-remapping-alist'), the function returns the
information for the remapped face."
(with-selected-window (window-normalize-window window t)
- (let* ((face (if face face 'default))
- (info (font-info (face-font face))))
- (aref info 3))))
+ (aref (font-info (face-font (or face 'default))) 3)))
(defun window-max-characters-per-line (&optional window face)
"Return the number of characters that can be displayed on one line in WINDOW.