From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.bugs Subject: bug#36288: 27.0.50; Cannot use menu-set-font Date: Sun, 30 Jun 2019 16:02:46 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="116168"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?UTF-8?Q?Goj=C5=8D?=) APEL/10.8 EasyPG/1.0.0 Emacs/25.3 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) Cc: 36288-done@debbugs.gnu.org To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 30 09:03:20 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hhTrr-000U2N-P4 for geb-bug-gnu-emacs@m.gmane.org; Sun, 30 Jun 2019 09:03:19 +0200 Original-Received: from localhost ([::1]:43288 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hhTrq-0001zT-4b for geb-bug-gnu-emacs@m.gmane.org; Sun, 30 Jun 2019 03:03:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47114) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hhTrg-0001zA-Gs for bug-gnu-emacs@gnu.org; Sun, 30 Jun 2019 03:03:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hhTre-0003BY-QS for bug-gnu-emacs@gnu.org; Sun, 30 Jun 2019 03:03:08 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59975) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hhTra-00038o-DO for bug-gnu-emacs@gnu.org; Sun, 30 Jun 2019 03:03:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hhTra-0008Tp-9m for bug-gnu-emacs@gnu.org; Sun, 30 Jun 2019 03:03:02 -0400 Resent-From: YAMAMOTO Mitsuharu Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sun, 30 Jun 2019 07:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 36288 X-GNU-PR-Package: emacs Mail-Followup-To: 36288@debbugs.gnu.org, mituharu@math.s.chiba-u.ac.jp, rpluim@gmail.com Original-Received: via spool by 36288-done@debbugs.gnu.org id=D36288.156187817132578 (code D ref 36288); Sun, 30 Jun 2019 07:03:02 +0000 Original-Received: (at 36288-done) by debbugs.gnu.org; 30 Jun 2019 07:02:51 +0000 Original-Received: from localhost ([127.0.0.1]:45284 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hhTrP-0008Sj-63 for submit@debbugs.gnu.org; Sun, 30 Jun 2019 03:02:51 -0400 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:65253) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hhTrK-0008Po-R4 for 36288-done@debbugs.gnu.org; Sun, 30 Jun 2019 03:02:50 -0400 Original-Received: from mathent.math.s.chiba-u.ac.jp (mathent [192.168.32.5]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id BFBC7F08DA; Sun, 30 Jun 2019 16:02:46 +0900 (JST) (envelope-from mituharu@math.s.chiba-u.ac.jp) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:161865 Archived-At: On Sun, 23 Jun 2019 22:50:11 +0900, Robert Pluim wrote: >=20 > >>>>> On Sun, 23 Jun 2019 15:34:23 +0900, YAMAMOTO Mitsuharu said: > >> On second thought, it seems to be better to leave the font type > >> unspecified. Hard-coding the wanted font type was introduced as a > >> "fix" for Bug#3228, but I suspect its reasoning is no longer valid= (I > >> couldn't find fonts.alias in the Type1 font directory in CentOS or > >> Linux Mint). Also, probably we should set the :family font proper= ty > >> instead of :name. >=20 > Thanks, that fixed things for me, with font-backend '(xfthb x) and '(x xf= thb) >=20 > I=CA=BCve not looked at Bug#3228, but at least on my Ubuntu machine I hav= e: >=20 > /usr/share/fonts/X11/Type1/fonts.alias > /usr/share/fonts/X11/misc/fonts.alias >=20 > but given the prevalence of opentype and truetype fonts, I=CA=BCm not sure > that there=CA=BCs anything to worry about. Ah, the package gsfonts-X11 seems to provide fonts.alias for URW Type1 fonts. Anyway, I think the behavior originally reported as Bug#3228 is actually consistent in the sense that "% emacs -fn courier-12" also displays the text in "ugly" font in OP's environment. Also, x-select-font is a function for a generic font selection dialog, not specific to menu-select-font. So its result should not include font type property only for menu-select-font. I've pushed the patch to master as e2d8c1e8bcf. Closing the bug. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp