diff options
| author | Naohiro Aota | 2010-06-30 10:22:18 -0400 |
|---|---|---|
| committer | Chong Yidong | 2010-06-30 10:22:18 -0400 |
| commit | 3d8416fce94a69c96e1819ddf0e40ad759cec9a3 (patch) | |
| tree | 8ce68bcbf8b4ce8c3753eb1bb6fd38a7ff657a8a /src | |
| parent | 8bf1c7863f6c10cea0dd4bcc58adb3695d64f86a (diff) | |
| download | emacs-3d8416fce94a69c96e1819ddf0e40ad759cec9a3.tar.gz 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')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/ftfont.c | 2 | ||||
| -rw-r--r-- | src/xftfont.c | 2 |
3 files changed, 9 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 5ba3f0e12a2..0db4a543ab7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2010-06-30 Naohiro Aota <naota@elisp.net> (tiny change) | ||
| 2 | |||
| 3 | * xftfont.c (xftfont_open): Check font width one by one also when | ||
| 4 | spacing is dual. | ||
| 5 | |||
| 6 | * ftfont.c (ftfont_open): Ditto. | ||
| 7 | |||
| 1 | 2010-06-26 Andreas Schwab <schwab@linux-m68k.org> | 8 | 2010-06-26 Andreas Schwab <schwab@linux-m68k.org> |
| 2 | 9 | ||
| 3 | * alloc.c (Fmake_byte_code): Don't access undefined argument | 10 | * alloc.c (Fmake_byte_code): Don't access undefined argument |
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) | |||
| 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) | 1265 | if (spacing != FC_PROPORTIONAL && spacing != FC_DUAL) |
| 1266 | font->min_width = font->average_width = font->space_width | 1266 | font->min_width = font->average_width = font->space_width |
| 1267 | = (scalable ? ft_face->max_advance_width * size / upEM | 1267 | = (scalable ? ft_face->max_advance_width * size / upEM |
| 1268 | : ft_face->size->metrics.max_advance >> 6); | 1268 | : ft_face->size->metrics.max_advance >> 6); |
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) | |||
| 429 | ascii_printable[i] = ' ' + i; | 429 | ascii_printable[i] = ' ' + i; |
| 430 | } | 430 | } |
| 431 | BLOCK_INPUT; | 431 | BLOCK_INPUT; |
| 432 | if (spacing != FC_PROPORTIONAL) | 432 | if (spacing != FC_PROPORTIONAL && spacing != FC_DUAL) |
| 433 | { | 433 | { |
| 434 | font->min_width = font->average_width = font->space_width | 434 | font->min_width = font->average_width = font->space_width |
| 435 | = xftfont->max_advance_width; | 435 | = xftfont->max_advance_width; |