[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Default font has size 12pixels when requested 13pixels
From: |
Stefan Monnier |
Subject: |
Re: Default font has size 12pixels when requested 13pixels |
Date: |
Mon, 18 Feb 2008 13:30:28 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
> 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))
{