From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#3228: 23.0.93; GTK font selection: asked for Courier, got Nimbus Date: Mon, 19 Jan 2015 20:46:41 -0800 Organization: UCLA Computer Science Department Message-ID: <54BDDDB1.5060607@cs.ucla.edu> References: <87eiv23bz6.fsf@turtle.gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------070300010506090409030400" X-Trace: ger.gmane.org 1421729234 11711 80.91.229.3 (20 Jan 2015 04:47:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 Jan 2015 04:47:14 +0000 (UTC) To: 3228@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 20 05:47:10 2015 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 1YDQic-0000HL-Bl for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 Jan 2015 05:47:10 +0100 Original-Received: from localhost ([::1]:41429 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDQib-0003sk-Ix for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Jan 2015 23:47:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40239) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDQiX-0003sY-HD for bug-gnu-emacs@gnu.org; Mon, 19 Jan 2015 23:47:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YDQiU-0002un-7A for bug-gnu-emacs@gnu.org; Mon, 19 Jan 2015 23:47:05 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59747) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDQiU-0002ug-2P for bug-gnu-emacs@gnu.org; Mon, 19 Jan 2015 23:47:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YDQiT-0001bQ-Qj for bug-gnu-emacs@gnu.org; Mon, 19 Jan 2015 23:47:01 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <87eiv23bz6.fsf@turtle.gmx.de> Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Jan 2015 04:47:01 +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.14217292106140 (code B ref 3228); Tue, 20 Jan 2015 04:47:01 +0000 Original-Received: (at 3228) by debbugs.gnu.org; 20 Jan 2015 04:46:50 +0000 Original-Received: from localhost ([127.0.0.1]:50206 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YDQiH-0001ay-JS for submit@debbugs.gnu.org; Mon, 19 Jan 2015 23:46:49 -0500 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:42987) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YDQiF-0001ah-Qq for 3228@debbugs.gnu.org; Mon, 19 Jan 2015 23:46:48 -0500 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 18AE3A6004C for <3228@debbugs.gnu.org>; Mon, 19 Jan 2015 20:46:42 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EhXBv8dRQ505 for <3228@debbugs.gnu.org>; Mon, 19 Jan 2015 20:46:41 -0800 (PST) Original-Received: from [192.168.1.9] (pool-173-55-11-52.lsanca.fios.verizon.net [173.55.11.52]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id B0098A6003B for <3228@debbugs.gnu.org>; Mon, 19 Jan 2015 20:46:41 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:98490 Archived-At: This is a multi-part message in MIME format. --------------070300010506090409030400 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit There was a typo in Chong Yidong's fix (installed 2012-08-17) and I installed the attached patch to fix it, as master commit ef5a526f1b51b76b0f753e0936c80743a7f4463d. --------------070300010506090409030400 Content-Type: text/x-patch; name="0001-Correct-an-old-fix-for-GTK-font-selection.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-Correct-an-old-fix-for-GTK-font-selection.patch" >From c80ef1c052314b4ba7386e612bc1bb02550d383d Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 19 Jan 2015 20:42:40 -0800 Subject: [PATCH] Correct an old fix for GTK font selection * gtkutil.c (xg_get_font): Fix off-by-2 typo. Fixes: bug#3228 --- src/ChangeLog | 4 ++++ src/gtkutil.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index ad7780f..b8528c2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,9 @@ 2015-01-20 Paul Eggert + Correct an old fix for GTK font selection + * gtkutil.c (xg_get_font): Fix off-by-2 typo. + Fixes: bug#3228 + Fix minor bugs with printing null bytes * minibuf.c (read_minibuf_noninteractive): * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: diff --git a/src/gtkutil.c b/src/gtkutil.c index 694278a..da05742 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c @@ -2093,7 +2093,7 @@ xg_get_font (struct frame *f, const char *default_name) args[8] = QCtype; args[9] = Qxft; - font = Ffont_spec (8, args); + font = Ffont_spec (10, args); pango_font_description_free (desc); dupstring (&x_last_font_name, name); -- 2.1.0 --------------070300010506090409030400--