GNU bug report logs - #64270
30.0.50; Font update for no toolkit menu

Previous Next

Package: emacs;

Reported by: Manuel Giraud <manuel <at> ledu-giraud.fr>

Date: Sat, 24 Jun 2023 17:01:02 UTC

Severity: normal

Found in version 30.0.50

Fixed in version 30.1

Done: Manuel Giraud <manuel <at> ledu-giraud.fr>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Manuel Giraud <manuel <at> ledu-giraud.fr>
Cc: 64270 <at> debbugs.gnu.org
Subject: bug#64270: 30.0.50; Font update for no toolkit menu
Date: Tue, 27 Jun 2023 14:26:36 +0300
> From: Manuel Giraud <manuel <at> ledu-giraud.fr>
> Cc: 64270 <at> debbugs.gnu.org
> Date: Tue, 27 Jun 2023 09:04:51 +0200
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> >> Date: Sat, 24 Jun 2023 19:00:04 +0200
> >> From:  Manuel Giraud via "Bug reports for GNU Emacs,
> >>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> >> 
> >> I'd like to be able to update the menu font (for the no toolkit build)
> >> at runtime.  For this, my idea was to pass the font (from say the menu
> >> face) to the XMenuCreate call in x_menu_show.
> >
> > Doesn' paneFont X resource already allow that?
> 
> Yes it does and I'm using it.  What I'm trying to achieve here is to be
> able to change those menu face dynamically: if a user changes the main
> frame font with 'set-frame-font', the menu font is also changed.

Do you mean that the menu font will change to the same font as the
frame's default face?  If so, I'm not sure that's a good idea: menu
fonts are normally different from the default font, and in particular
menus look nicer with variable-pitch fonts, whereas the default face
should preferably use a fixed-pitch font.

If this is not what you meant, then how would Emacs know which font to
select for menus when the default face's font is changed?




This bug report was last modified 1 year and 323 days ago.

Previous Next


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