From: Tim Mann Date: Mon, 30 May 2011 20:21:06 +0000 (-0700) Subject: Add a final wildcard default for fonts. This gives XCreateFontSet X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=30583dd0f88cef9b1281f2ce5fa06651bf6d4bb6;p=xboard.git Add a final wildcard default for fonts. This gives XCreateFontSet more freedom and lets it find fonts for some obscure charsets where fixed-bold or fixed-medium etc. may not have one. --- diff --git a/xboard.h b/xboard.h index 7173dbe..0ee378a 100644 --- a/xboard.h +++ b/xboard.h @@ -55,12 +55,18 @@ #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--*-*-*-*-*-*-*-*"