[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/ftfont.c,v
From: |
Kenichi Handa |
Subject: |
[Emacs-diffs] Changes to emacs/src/ftfont.c,v |
Date: |
Thu, 28 Feb 2008 12:54:31 +0000 |
CVSROOT: /cvsroot/emacs
Module name: emacs
Changes by: Kenichi Handa <handa> 08/02/28 12:54:31
Index: ftfont.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/ftfont.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- ftfont.c 16 Feb 2008 12:40:42 -0000 1.6
+++ ftfont.c 28 Feb 2008 12:54:31 -0000 1.7
@@ -710,6 +710,14 @@
pattern = FcNameParse (SDATA (XCDR (val)));
if (pattern)
{
+ if (INTEGERP (AREF (spec, FONT_SIZE_INDEX)))
+ {
+ FcValue value;
+
+ value.type = FcTypeDouble;
+ value.u.d = XINT (AREF (spec, FONT_SIZE_INDEX));
+ FcPatternAdd (pattern, FC_PIXEL_SIZE, value, FcFalse);
+ }
if (FcConfigSubstitute (NULL, pattern, FcMatchPattern) == FcTrue)
{
FcDefaultSubstitute (pattern);
- [Emacs-diffs] Changes to emacs/src/ftfont.c,v, Glenn Morris, 2008/02/05
- [Emacs-diffs] Changes to emacs/src/ftfont.c,v, Kenichi Handa, 2008/02/06
- [Emacs-diffs] Changes to emacs/src/ftfont.c,v, Kenichi Handa, 2008/02/06
- [Emacs-diffs] Changes to emacs/src/ftfont.c,v, Kenichi Handa, 2008/02/16
- [Emacs-diffs] Changes to emacs/src/ftfont.c,v,
Kenichi Handa <=