From 2d477dcab8a141abcf05c8313dbae92b6a181dda Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Mon, 3 Dec 2007 13:49:09 +0000 Subject: [PATCH] (font_unparse_xlfd): If pixel_size is zero, make the PIXEL_SIZE part a wild card. --- src/font.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) { -- 2.39.5