From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Subject: Re: Default font has size 12pixels when requested 13pixels
Date: Mon, 18 Feb 2008 13:30:28 -0500 [thread overview]
Message-ID: <jwvskzqdsr1.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <jwvy79mkl7m.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Fri, 15 Feb 2008 15:48:21 -0500")
> My default font is specified via X resources:
> Emacs.font: -misc-fixed-medium-r-semicondensed--13-*-*-*-*-*-*-*
> yet with the new font-backend, I get the 12-pixel version of that font
> (which happens to be a *lot* smaller).
I believe I've tracked it down to a thinko/typo fixed by the patch below,
Stefan
Index: src/font.c
===================================================================
RCS file: /sources/emacs/emacs/src/font.c,v
retrieving revision 1.6
diff -u -r1.6 font.c
--- src/font.c 17 Feb 2008 02:03:58 -0000 1.6
+++ src/font.c 18 Feb 2008 18:29:40 -0000
@@ -1167,7 +1167,8 @@
len += sprintf (f[XLFD_PIXEL_INDEX], "%d-*", i) + 1;
else if (pixel_size > 0)
len += sprintf (f[XLFD_PIXEL_INDEX], "%d-*", pixel_size) + 1;
- f[XLFD_PIXEL_INDEX] = "*-*", len += 4;
+ else
+ f[XLFD_PIXEL_INDEX] = "*-*", len += 4;
}
else if (FLOATP (val))
{
next prev parent reply other threads:[~2008-02-18 18:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-15 20:48 Default font has size 12pixels when requested 13pixels Stefan Monnier
2008-02-15 21:40 ` Jason Rumney
2008-02-16 0:42 ` Glenn Morris
2008-02-18 18:30 ` Stefan Monnier [this message]
2008-02-19 8:04 ` Kenichi Handa
2008-02-19 9:19 ` Jason Rumney
2008-02-19 12:48 ` Kenichi Handa
2008-02-19 20:00 ` Glenn Morris
2008-02-19 22:51 ` Jason Rumney
2008-02-19 22:53 ` Glenn Morris
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvskzqdsr1.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.