aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2011-02-02 11:15:29 +0900
committerKenichi Handa2011-02-02 11:15:29 +0900
commitea2460a0d88ffbc96a8897d754d6cdd08e117ed6 (patch)
tree56efc1f491346ffc5cacaa7dc41817f0669e5e34 /src
parentdf61c79005470fad666b3c3ae257eef1e06bd079 (diff)
downloademacs-ea2460a0d88ffbc96a8897d754d6cdd08e117ed6.tar.gz
emacs-ea2460a0d88ffbc96a8897d754d6cdd08e117ed6.zip
Use FC_DUAL only when it is defined.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/ftfont.c6
-rw-r--r--src/xftfont.c6
3 files changed, 16 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index af76f670e6c..8af6bafd903 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12011-02-02 Kenichi Handa <handa@m17n.org>
2
3 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
4
5 * xftfont.c (xftfont_open): Likewise.
6
12011-01-29 Andreas Schwab <schwab@linux-m68k.org> 72011-01-29 Andreas Schwab <schwab@linux-m68k.org>
2 8
3 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead 9 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
diff --git a/src/ftfont.c b/src/ftfont.c
index e90a2fc5657..6009bd39537 100644
--- a/src/ftfont.c
+++ b/src/ftfont.c
@@ -1262,7 +1262,11 @@ ftfont_open (f, entity, pixel_size)
1262 spacing = XINT (AREF (entity, FONT_SPACING_INDEX)); 1262 spacing = XINT (AREF (entity, FONT_SPACING_INDEX));
1263 else 1263 else
1264 spacing = FC_PROPORTIONAL; 1264 spacing = FC_PROPORTIONAL;
1265 if (spacing != FC_PROPORTIONAL && spacing != FC_DUAL) 1265 if (spacing != FC_PROPORTIONAL
1266#ifdef FC_DUAL
1267 && spacing != FC_DUAL
1268#endif /* FC_DUAL */
1269 )
1266 font->min_width = font->average_width = font->space_width 1270 font->min_width = font->average_width = font->space_width
1267 = (scalable ? ft_face->max_advance_width * size / upEM 1271 = (scalable ? ft_face->max_advance_width * size / upEM
1268 : ft_face->size->metrics.max_advance >> 6); 1272 : ft_face->size->metrics.max_advance >> 6);
diff --git a/src/xftfont.c b/src/xftfont.c
index 35e07da61e3..de2572ce3e6 100644
--- a/src/xftfont.c
+++ b/src/xftfont.c
@@ -430,7 +430,11 @@ xftfont_open (f, entity, pixel_size)
430 ascii_printable[i] = ' ' + i; 430 ascii_printable[i] = ' ' + i;
431 } 431 }
432 BLOCK_INPUT; 432 BLOCK_INPUT;
433 if (spacing != FC_PROPORTIONAL && spacing != FC_DUAL) 433 if (spacing != FC_PROPORTIONAL
434#ifdef FC_DUAL
435 && spacing != FC_DUAL
436#endif /* FC_DUAL */
437 )
434 { 438 {
435 font->min_width = font->average_width = font->space_width 439 font->min_width = font->average_width = font->space_width
436 = xftfont->max_advance_width; 440 = xftfont->max_advance_width;