tags 588808 + fixed-upstream patch thanks On 2010-07-12 15:27 +0200, mizuno hajime wrote:
> With Takao Gothic in use, Emacs frames are shown twice as wide as it > supposed to be. > [...] > This bug has already been corrected in trunk of GNU Emacs. > http://article.gmane.org/gmane.emacs.devel/111557/ For the record, it has also been fixed in the emacs-23 branch. Here is the patch¹ that went in there: ,---- | diff --git a/src/ChangeLog b/src/ChangeLog | index 4f9010b..3859b83 100644 | --- a/src/ChangeLog | +++ b/src/ChangeLog | @@ -1,3 +1,10 @@ | +2010-06-30 Naohiro Aota <[email protected]> (tiny change) | + | + * xftfont.c (xftfont_open): Check font width one by one also when | + spacing is dual. | + | + * ftfont.c (ftfont_open): Ditto. | + | 2010-06-26 Andreas Schwab <[email protected]> | | * alloc.c (Fmake_byte_code): Don't access undefined argument | diff --git a/src/ftfont.c b/src/ftfont.c | index 9699dc5..33a9614 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); | diff --git a/src/xftfont.c b/src/xftfont.c | index 5d4581b..197cc9c 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; `---- Sven ¹ http://repo.or.cz/w/emacs.git/commit/4598ad269c5402e99604c702825cb8963c693402 -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

