unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: 3228@debbugs.gnu.org
Subject: bug#3228: 23.0.93; GTK font selection: asked for Courier, got Nimbus
Date: Mon, 19 Jan 2015 20:46:41 -0800	[thread overview]
Message-ID: <54BDDDB1.5060607@cs.ucla.edu> (raw)
In-Reply-To: <87eiv23bz6.fsf@turtle.gmx.de>

[-- Attachment #1: Type: text/plain, Size: 169 bytes --]

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.

[-- Attachment #2: 0001-Correct-an-old-fix-for-GTK-font-selection.patch --]
[-- Type: text/x-patch, Size: 1189 bytes --]

From c80ef1c052314b4ba7386e612bc1bb02550d383d Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@cs.ucla.edu>
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  <eggert@cs.ucla.edu>
 
+	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


  parent reply	other threads:[~2015-01-20  4:46 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-06  7:51 bug#3228: 23.0.93; GTK font selection: asked for Courier, got Nimbus Sven Joachim
2009-05-07  6:57 ` Kenichi Handa
2009-05-07  7:19   ` Sven Joachim
2009-05-07 11:51     ` Kenichi Handa
2009-05-07 18:32       ` Sven Joachim
2009-05-07 19:21         ` Stefan Monnier
2009-05-08  1:49         ` Kenichi Handa
2009-05-08  6:13           ` Sven Joachim
2009-05-18 12:42             ` Kenichi Handa
2012-08-16  6:58               ` Chong Yidong
2012-08-16 15:05                 ` Kenichi Handa
2012-08-17  9:10                   ` Chong Yidong
2015-01-20  4:46 ` Paul Eggert [this message]
2015-01-20 19:08   ` Glenn Morris
2015-01-20 20:24     ` Paul Eggert
2015-01-20 22:24       ` Glenn Morris
2015-01-21  6:07         ` Paul Eggert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54BDDDB1.5060607@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=3228@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).