diff options
author | Naohiro Aota <naota@elisp.net> | 2010-06-30 10:22:18 -0400 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2010-06-30 10:22:18 -0400 |
commit | 3d8416fce94a69c96e1819ddf0e40ad759cec9a3 (patch) | |
tree | 8ce68bcbf8b4ce8c3753eb1bb6fd38a7ff657a8a /src/ftfont.c | |
parent | 8bf1c7863f6c10cea0dd4bcc58adb3695d64f86a (diff) | |
download | emacs-3d8416fce94a69c96e1819ddf0e40ad759cec9a3.tar.gz emacs-3d8416fce94a69c96e1819ddf0e40ad759cec9a3.tar.bz2 emacs-3d8416fce94a69c96e1819ddf0e40ad759cec9a3.zip |
Check FC_DUAL too. For such fonts, check width one by one (Bug#4129).
* xftfont.c (xftfont_open): Check font width one by one also when
spacing is dual.
* ftfont.c (ftfont_open): Ditto.
Diffstat (limited to 'src/ftfont.c')
-rw-r--r-- | src/ftfont.c | 2 |
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); |