From: Kenichi Handa Date: Mon, 3 Dec 2007 13:49:09 +0000 (+0000) Subject: (font_unparse_xlfd): If pixel_size is zero, make the X-Git-Tag: emacs-pretest-23.0.90~8295^2~199 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2d477dcab8a141abcf05c8313dbae92b6a181dda;p=emacs.git (font_unparse_xlfd): If pixel_size is zero, make the PIXEL_SIZE part a wild card. --- diff --git a/src/font.c b/src/font.c index 43af7345c33..303b5c3ba06 100644 --- a/src/font.c +++ b/src/font.c @@ -1153,8 +1153,9 @@ font_unparse_xlfd (font, pixel_size, name, nbytes) i = XINT (val); if (i > 0) len += sprintf (f[XLFD_PIXEL_INDEX], "%d-*", i) + 1; - else /* i == 0 */ + else if (pixel_size > 0) len += sprintf (f[XLFD_PIXEL_INDEX], "%d-*", pixel_size) + 1; + f[XLFD_PIXEL_INDEX] = "*-*", len += 4; } else if (FLOATP (val)) {