From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Fix placement of toggle and radio button in Lucid menu. Date: Sat, 26 Feb 2022 09:51:31 +0200 Message-ID: <83o82uoykc.fsf@gnu.org> References: <87sfs87i5o.fsf@elite.giraud> <87pmnc7f5c.fsf@yahoo.com> <87k0dk7ejd.fsf@yahoo.com> <878rtzb3hr.fsf@elite.giraud> <83h78nqguu.fsf@gnu.org> <87wnhj152u.fsf@elite.giraud> <83a6efqepd.fsf@gnu.org> <87sfs75a99.fsf@yahoo.com> <837d9jqbpd.fsf@gnu.org> <87mtie5vil.fsf@yahoo.com> <83tucmp2lp.fsf@gnu.org> <874k4m5bfv.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39214"; mail-complaints-to="usenet@ciao.gmane.io" Cc: manuel@ledu-giraud.fr, emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Feb 26 08:52:31 2022 Return-path: Envelope-to: ged-emacs-devel@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 1nNrsV-000A4z-5J for ged-emacs-devel@m.gmane-mx.org; Sat, 26 Feb 2022 08:52:31 +0100 Original-Received: from localhost ([::1]:57880 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nNrsU-00034M-42 for ged-emacs-devel@m.gmane-mx.org; Sat, 26 Feb 2022 02:52:30 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44266) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNrro-0002Ko-Uf for emacs-devel@gnu.org; Sat, 26 Feb 2022 02:51:48 -0500 Original-Received: from [2001:470:142:3::e] (port=44946 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNrro-00032u-14; Sat, 26 Feb 2022 02:51:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=FUjxRmcK5HF1iFAkSIRXHwwUpStGZB+cytHHch6YKCE=; b=jZKjL+ynMmPl vHhmJz8cxvDrLkeMih3yIntHwwVfLEblMG9uy3zaGqf0Uc8yjFxLydIJ+NCjsHNReygyAaXc4UHXr 6cX96uHwUjt1y21yaq3EeOGVo9QZiaDZld2hn790KcTebDEdSK1AlfNh/ZGA2RwRq4LNf0WR/I46w Edr3tZvjNDU/IWVrRlWbMaG33W7YheLfGybzOpWr2FjPMzpsDYkPkbAT7aWo3kw0imbOiiKX4yRiw CgRiMD3lcIulEKSelD6wrnfYOC/U55Hj7xo1Q7ZkUX8WQn8OxdNFKgHdHxBjv1V3xbNQhtSaoMZgI pzFiUIh4uKZrsewbSYXqfA==; Original-Received: from [87.69.77.57] (port=1043 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNrrn-00036g-FE; Sat, 26 Feb 2022 02:51:47 -0500 In-Reply-To: <874k4m5bfv.fsf@yahoo.com> (message from Po Lu on Sat, 26 Feb 2022 15:33:40 +0800) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:286698 Archived-At: > From: Po Lu > Cc: manuel@ledu-giraud.fr, emacs-devel@gnu.org > Date: Sat, 26 Feb 2022 15:33:40 +0800 > > Eli Zaretskii writes: > > > Sorry, I don't understand how this is relevant. > > The problem is that the Lucid menu bar widget doesn't find fonts like > the rest of Emacs does, using the individual font backends. Instead, it > relies on various ad hoc methods for font discovery that change > depending on how it is built. I didn't look too closely, but font > metrics are probably calculated differently as well. That's not the impression I get when I look at the definition of MENU_FONT_HEIGHT in xlwmenu.c: it does use the font attributes used by the "usual" font backends, at least in the case of XFT and Cairo. Am I missing something? > > The only difficulty I could see is if somehow it is not easy to know > > which font is used in the Lucid menus. Is that the problem? > > That's also a problem, but you can control the font by starting Emacs > with "-xrm 'Emacs.pane.menubar.font: Courier-12''" or something to that > effect. Yes, that's another idea for obtaining this information.