From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Fix placement of toggle and radio button in Lucid menu. Date: Sat, 26 Feb 2022 15:33:40 +0800 Message-ID: <874k4m5bfv.fsf@yahoo.com> 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38713"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: manuel@ledu-giraud.fr, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Feb 26 08:35:10 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 1nNrbh-0009o8-Re for ged-emacs-devel@m.gmane-mx.org; Sat, 26 Feb 2022 08:35:09 +0100 Original-Received: from localhost ([::1]:42764 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nNrbg-0000eO-9B for ged-emacs-devel@m.gmane-mx.org; Sat, 26 Feb 2022 02:35:08 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41534) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNrae-0008OD-On for emacs-devel@gnu.org; Sat, 26 Feb 2022 02:34:04 -0500 Original-Received: from sonic306-20.consmr.mail.ne1.yahoo.com ([66.163.189.82]:40792) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nNrac-00073J-O7 for emacs-devel@gnu.org; Sat, 26 Feb 2022 02:34:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1645860830; bh=2hSivA3RYlvW/q6P2Tsqdz2qvKRBvS0TS+MX/j6m2ik=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=dipEF5WSACDFdQBkowHDEBcEDCGXDrkfWieStYhko4wW8SWmr5eZQVjVD0jHwUOyQwa06UeukdXasGo42CM9ILoCvBfYNkzpdKO4f208VIPjFwvaaKKUE+Pgn/9+mhapGL+8JTvQNV7u+BxBlTObtnKF6xCm1RWjHC1h4Xvy/0UiKvUu2+gUs4DKZqB0LN383hpyYLO8GyauJLn1VFk9ajt+JhuRqay57sBLX3PL+jxJe0rLptlrgV3LJaqFCrqzMmrlqtVYBkfesAcHPRiCLTJeWXV6kETJJ4L1SL5dEJ0o2csyX8LmoVwUMrMf9JLd3ydZaSL/R+TfHdzFe8q70g== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1645860830; bh=Aj6MVw2LGD/vx/ullLg1eO2qcexOL1PwzgOG7lrNVlD=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=qixIyz3V3eihWRfoZ0s+fNvKSTjCXAHO/woARR6WNfrbU5uRYyPE50UhrwfmkZcDKnnj06+C2/tQlodsMwfPZ0bKV6XITYBTcP7fai6ZdUat2VSzAIbeMVDoyZX60ODvp3L3gDhEdkKm3znvy4n9UTgUcBtQxhzhRwxtmBaz5PQ/ECZ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ahoo.com by sonic306.consmr.mail.ne1.yahoo.com with HTTP; Sat, 26 Feb 2022 07:33:50 +0000 Original-Received: by kubenode509.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 5d28e9c5201706fe864f5ee311ab4fe4; Sat, 26 Feb 2022 07:33:45 +0000 (UTC) In-Reply-To: <83tucmp2lp.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 26 Feb 2022 08:24:18 +0200") X-Mailer: WebService/1.1.19797 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.189.82; envelope-from=luangruo@yahoo.com; helo=sonic306-20.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action 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:286696 Archived-At: 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. But I thought you were suggesting that the Lucid menu bar widget used font objects opened by Emacs. > What I meant is to invoke Emacs like this: > > emacs -Q -fn SOMETHING > > where SOMETHING is the font used in the Lucid menus, and the examine > the metrics of the relevant characters and of the font inside > gui_produce_glyphs. > > 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. But keep in mind that the metrics may still be different, due to the aformentioned caveats. For instance, it might elect to use X server-side fonts even if the same font is displayed using Xft by the rest of Emacs, very often resulting in different metrics. Thanks.