summaryrefslogtreecommitdiff
path: root/src/ftfont.c
diff options
context:
space:
mode:
authorKenichi Handa <handa@etlken>2010-06-30 15:55:41 +0900
committerKenichi Handa <handa@etlken>2010-06-30 15:55:41 +0900
commit769e9d470d674ba60fcf085bccd29824657dc776 (patch)
tree1adcfc07df5faf9a877ab96859cca6490d4cf9a0 /src/ftfont.c
parentdabe1990725147646af16882e5b0ae3a083e9228 (diff)
downloademacs-769e9d470d674ba60fcf085bccd29824657dc776.tar.gz
Check FC_DUAL too. For such fonts, check width one by one.
Diffstat (limited to 'src/ftfont.c')
-rw-r--r--src/ftfont.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ftfont.c b/src/ftfont.c
index 9699dc58009..33a96143fd0 100644
--- a/src/ftfont.c
+++ b/src/ftfont.c
@@ -1262,7 +1262,7 @@ ftfont_open (f, entity, pixel_size)
spacing = XINT (AREF (entity, FONT_SPACING_INDEX));
else
spacing = FC_PROPORTIONAL;
- if (spacing != FC_PROPORTIONAL)
+ if (spacing != FC_PROPORTIONAL && spacing != FC_DUAL)
font->min_width = font->average_width = font->space_width
= (scalable ? ft_face->max_advance_width * size / upEM
: ft_face->size->metrics.max_advance >> 6);