GNU bug report logs - #42539
28.0.50 font face in mode line problem ?

Previous Next

Package: emacs;

Reported by: Fabrice Popineau <fabrice.popineau <at> gmail.com>

Date: Sat, 25 Jul 2020 19:22:01 UTC

Severity: normal

Found in version 28.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 42539 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Fabrice Popineau <fabrice.popineau <at> gmail.com>
Cc: 42539 <at> debbugs.gnu.org
Subject: Re: bug#42539: 28.0.50 font face in mode line problem ?
Date: Sun, 26 Jul 2020 18:31:03 +0300
> From: Fabrice Popineau <fabrice.popineau <at> gmail.com>
> Date: Sat, 25 Jul 2020 21:21:36 +0200
> 
> ><------------------------------------------------------------------------------------><
> (set-face-font 'default "Roboto Mono Light 14")
> 
> (set-fontset-font "fontset-default"  '(#x2600 . #x26ff) "Fira Code 16")
> 
> (defun mode-line-render (left right)
>   (let* ((available-width (- (window-width) (length left) )))
>     (format (format "%%s %%%ds" available-width) left right)))
> 
> (setq-default mode-line-format
>      '((:eval
>         (mode-line-render
> (format-mode-line
>  (list
>   (propertize "☰" 'face `(:inherit mode-line-buffer-id)
>                        'help-echo "Mode(s) menu"
>                        'mouse-face 'mode-line-highlight
>                        'local-map   mode-line-major-mode-keymap)
>            " %b "
>            (if (and buffer-file-name (buffer-modified-p))
>                (propertize "(modified)" 'face `(:inherit face-faded)))))
> (format-mode-line
>           (propertize "%4l:%2c  " 'face `(:inherit face-faded)))))))
> ><------------------------------------------------------------------------------------><
> When evalutating this code from `emacs -Q', the intended character is never displayed (I assume that it is
> because it is not looked in the Fira Code font)

Does it help to give the nil value to use-default-font-for-symbols?




This bug report was last modified 3 years and 322 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.