From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.bugs Subject: bug#3228: 23.0.93; GTK font selection: asked for Courier, got Nimbus Date: Fri, 17 Aug 2012 00:05:37 +0900 Message-ID: <874no2x4fy.fsf@gnu.org> References: <87eiv23bz6.fsf@turtle.gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1345129592 15909 80.91.229.3 (16 Aug 2012 15:06:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 Aug 2012 15:06:32 +0000 (UTC) Cc: svenjoac@gmx.de, 3228@debbugs.gnu.org To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 16 17:06:30 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T21eR-0006bE-Rs for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Aug 2012 17:06:23 +0200 Original-Received: from localhost ([::1]:42204 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T21eQ-0002qR-QR for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Aug 2012 11:06:22 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44335) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T21eN-0002jt-HE for bug-gnu-emacs@gnu.org; Thu, 16 Aug 2012 11:06:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T21eH-0004K4-98 for bug-gnu-emacs@gnu.org; Thu, 16 Aug 2012 11:06:19 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52292) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T21eH-0004Jx-5U for bug-gnu-emacs@gnu.org; Thu, 16 Aug 2012 11:06:13 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1T21mo-0000S4-94 for bug-gnu-emacs@gnu.org; Thu, 16 Aug 2012 11:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kenichi Handa Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 16 Aug 2012 15:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 3228 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 3228-submit@debbugs.gnu.org id=B3228.13451300781694 (code B ref 3228); Thu, 16 Aug 2012 15:15:02 +0000 Original-Received: (at 3228) by debbugs.gnu.org; 16 Aug 2012 15:14:38 +0000 Original-Received: from localhost ([127.0.0.1]:33605 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T21mP-0000RH-9M for submit@debbugs.gnu.org; Thu, 16 Aug 2012 11:14:37 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:41632) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T21mM-0000R9-Eh for 3228@debbugs.gnu.org; Thu, 16 Aug 2012 11:14:35 -0400 Original-Received: from 126.229.accsnet.ne.jp ([202.220.229.126]:52995 helo=ubuntu) by fencepost.gnu.org with esmtpa (Exim 4.71) (envelope-from ) id 1T21dn-0000at-MH; Thu, 16 Aug 2012 11:05:44 -0400 In-Reply-To: <87lihfiaqp.fsf@gnu.org> (message from Chong Yidong on Thu, 16 Aug 2012 14:58:38 +0800) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:63229 In article <87lihfiaqp.fsf@gnu.org>, Chong Yidong writes: > Kenichi Handa writes: > > So, this problem can be solved by modifying x-select-font > > (called from menu-set-font) to return a font-spec (with a > > proper font-backend name in :type) instead of font-name. > I've now done this in the trunk for the GTK 3 case. It's not > straightforward to do this for GTK 2, so I will not attempt that. Thank you. I also wrote: > > But, x-select-font is called from mouse-appearance-menu (in > > mouse.el) too, and it does something like this: > > (buffer-face-mode-invoke (font-face-attributes (x-select-font)) ...) > > and thus the :type information is lost by > > font-face-attributes. I don't know why we need > > font-face-attributes here. How did you solve it? Or, is it not a problem? --- Kenichi Handa handa@gnu.org