From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Giraud via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#64270: 30.0.50; Font update for no toolkit menu Date: Tue, 27 Jun 2023 16:13:15 +0200 Message-ID: <87bkh1c7t0.fsf@ledu-giraud.fr> References: <874jmwhk2z.fsf@ledu-giraud.fr> <83352gzspt.fsf@gnu.org> <87zg4le67g.fsf@ledu-giraud.fr> <83edlxw3gz.fsf@gnu.org> Reply-To: Manuel Giraud Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18475"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 64270@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 27 16:14:26 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qE9Sb-0004at-Tn for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 27 Jun 2023 16:14:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qE9SP-0000pF-Fk; Tue, 27 Jun 2023 10:14:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qE9SF-0000Yh-87 for bug-gnu-emacs@gnu.org; Tue, 27 Jun 2023 10:14:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qE9SE-0007m7-Vi for bug-gnu-emacs@gnu.org; Tue, 27 Jun 2023 10:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qE9SE-0001ND-BB for bug-gnu-emacs@gnu.org; Tue, 27 Jun 2023 10:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Manuel Giraud Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Jun 2023 14:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64270 X-GNU-PR-Package: emacs Original-Received: via spool by 64270-submit@debbugs.gnu.org id=B64270.16878752015212 (code B ref 64270); Tue, 27 Jun 2023 14:14:02 +0000 Original-Received: (at 64270) by debbugs.gnu.org; 27 Jun 2023 14:13:21 +0000 Original-Received: from localhost ([127.0.0.1]:49336 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qE9RZ-0001Ly-4B for submit@debbugs.gnu.org; Tue, 27 Jun 2023 10:13:21 -0400 Original-Received: from ledu-giraud.fr ([51.159.28.247]:4423) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qE9RW-0001Lm-Gy for 64270@debbugs.gnu.org; Tue, 27 Jun 2023 10:13:20 -0400 DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=g36KEYoT BzGQld+NCQVQptsj8xXHAhJgL8aVooX9nFI=; h=date:references:in-reply-to: subject:cc:to:from; d=ledu-giraud.fr; b=qeG1ZPealvUa+cLKfOOPszdoHUb7kB FyLDLggexU24iW+YVTHmghVaFHQM7icE7bvX8sgTOhC4YLIOkI2pULAQ== DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=g36KEYoTBzGQld+N CQVQptsj8xXHAhJgL8aVooX9nFI=; h=date:references:in-reply-to:subject: cc:to:from; d=ledu-giraud.fr; b=aBroSv1ODjD2bd+00CqSd1qz4BYE00pcoWhdnJ UzXqCxr0MdOSyeOypPDg1j+0bb8aqplzDJD+obO9cFjF3DKmf3lTiFff6anlazDuaDLurD 9LUcFJj/wv5XjTMrfQ2Zb8ctgaHYpaM3EufcCKjP6ijUePf7EhzhKVg2F70aeblzJxJCvI 0dY/rL6KWhC5zgKYm8z80QdYPgMl3IDwltKtqLW4AdWRc5dwYXLqulR1s3iAW1cKxQi0cT lhFiwh39Oajbs/u3NP2mx04b6Zos+2aYQiDb6DkpTC2x+45+6zLZx6CpHxI1T3RD89mXju IT7WOohpIhBooIS2TgQwzGcA== Original-Received: from computer ( [10.1.1.1]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 867c2245 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 27 Jun 2023 16:13:16 +0200 (CEST) In-Reply-To: <83edlxw3gz.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 27 Jun 2023 14:26:36 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:264164 Archived-At: Eli Zaretskii writes: >> From: Manuel Giraud >> Cc: 64270@debbugs.gnu.org >> Date: Tue, 27 Jun 2023 09:04:51 +0200 >> >> Eli Zaretskii 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" >> >> >> >> 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? For my usage, I imagine that yes the menu font would change when I change the frame's default face. But this because my menu face is already derived from the default face. For the general usage, my idea (and what I start doing in my patch, see my first message) is to query the MENU_FACE_ID. So the font into the menus would change if the user modify its menu face. -- Manuel Giraud