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/xftfont.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/xftfont.c')
-rw-r--r-- | src/xftfont.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xftfont.c b/src/xftfont.c index 5d4581be4e9..197cc9c1f5b 100644 --- a/src/xftfont.c +++ b/src/xftfont.c @@ -429,7 +429,7 @@ xftfont_open (f, entity, pixel_size) ascii_printable[i] = ' ' + i; } BLOCK_INPUT; - if (spacing != FC_PROPORTIONAL) + if (spacing != FC_PROPORTIONAL && spacing != FC_DUAL) { font->min_width = font->average_width = font->space_width = xftfont->max_advance_width; |