Add a final wildcard default for fonts. This gives XCreateFontSet
authorTim Mann <tim@tim-mann.org>
Mon, 30 May 2011 20:21:06 +0000 (13:21 -0700)
committerTim Mann <tim@tim-mann.org>
Mon, 30 May 2011 20:21:06 +0000 (13:21 -0700)
more freedom and lets it find fonts for some obscure charsets where
fixed-bold or fixed-medium etc. may not have one.

xboard.h

index 7173dbe..0ee378a 100644 (file)
--- a/xboard.h
+++ b/xboard.h
 #define INFOFILE     "xboard.info"
 #define MANPAGE      "xboard.6"
 #if ENABLE_NLS
-#define CLOCK_FONT_NAME         "-*-helvetica-bold-r-normal--*-*-*-*-*-*-*-*,"\
-  "-misc-fixed-bold-r-normal--*-*-*-*-*-*-*-*"
-#define COORD_FONT_NAME         "-*-helvetica-bold-r-normal--*-*-*-*-*-*-*-*," \
-  "-misc-fixed-bold-r-normal--*-*-*-*-*-*-*-*"
-#define DEFAULT_FONT_NAME       "-*-helvetica-medium-r-normal--*-*-*-*-*-*-*-*,"\
-  "-misc-fixed-medium-r-normal--*-*-*-*-*-*-*-*"
+#define CLOCK_FONT_NAME \
+  "-*-helvetica-bold-r-normal--*-*-*-*-*-*-*-*," \
+  "-misc-fixed-bold-r-normal--*-*-*-*-*-*-*-*," \
+  "-*-*-*-*-*-*-*-*-*-*-*-*-*-*"
+#define COORD_FONT_NAME \
+  "-*-helvetica-bold-r-normal--*-*-*-*-*-*-*-*," \
+  "-misc-fixed-bold-r-normal--*-*-*-*-*-*-*-*," \
+  "-*-*-*-*-*-*-*-*-*-*-*-*-*-*"
+#define DEFAULT_FONT_NAME \
+  "-*-helvetica-medium-r-normal--*-*-*-*-*-*-*-*," \
+  "-misc-fixed-medium-r-normal--*-*-*-*-*-*-*-*," \
+  "-*-*-*-*-*-*-*-*-*-*-*-*-*-*"
 #else
 #define CLOCK_FONT_NAME         "-*-helvetica-bold-r-normal--*-*-*-*-*-*-*-*"
 #define COORD_FONT_NAME         "-*-helvetica-bold-r-normal--*-*-*-*-*-*-*-*"