changeset 91168:4323f9b78ae1

(font_unparse_xlfd): If pixel_size is zero, make the PIXEL_SIZE part a wild card.
author Kenichi Handa <handa@m17n.org>
date Mon, 03 Dec 2007 13:49:09 +0000
parents d56477e18a66
children 8eb408860621
files src/font.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/font.c	Mon Dec 03 13:45:14 2007 +0000
+++ b/src/font.c	Mon Dec 03 13:49:09 2007 +0000
@@ -1153,8 +1153,9 @@
       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))
     {