In keeping with the spirit of free software, this patch removes several
Microsoft fonts (Trebuchet, Arial, and Verdana) from being the default fonts for
Window Maker and WINGs.

This patch has the added advantage of allowing users some control over the
appearance of WINGs widgets.  Formerly, there was no way to control the font if
the Trebuchet MS font was installed.  Now the WINGs font can be changed by
setting the sans-serif alias in fonts.conf.
---
 WINGs/configuration.c |  4 ++--
 src/wconfig.h.in      | 14 +++++++-------
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/WINGs/configuration.c b/WINGs/configuration.c
index 8e53ba6..0aaf31a 100644
--- a/WINGs/configuration.c
+++ b/WINGs/configuration.c
@@ -6,8 +6,8 @@
 
 _WINGsConfiguration WINGsConfiguration;
 
-#define SYSTEM_FONT "Trebuchet MS,sans serif"
-#define BOLD_SYSTEM_FONT "Trebuchet MS,sans serif:bold"
+#define SYSTEM_FONT "sans serif"
+#define BOLD_SYSTEM_FONT "sans serif:bold"
 #define DEFAULT_FONT_SIZE 12
 
 #define FLOPPY_PATH "/floppy"
diff --git a/src/wconfig.h.in b/src/wconfig.h.in
index c2a79a3..bb267fe 100644
--- a/src/wconfig.h.in
+++ b/src/wconfig.h.in
@@ -164,13 +164,13 @@
 #define DEF_FRAME_COLOR   "white"
 
 /* default fonts */
-#define DEF_TITLE_FONT          "\"Trebuchet MS,sans serif:bold:pixelsize=12\""
-#define DEF_MENU_TITLE_FONT     "\"Trebuchet MS,sans serif:bold:pixelsize=12\""
-#define DEF_MENU_ENTRY_FONT     "\"Trebuchet MS,sans serif:pixelsize=12\""
-#define DEF_ICON_TITLE_FONT     "\"Arial,sans serif:pixelsize=9\""
-#define DEF_CLIP_TITLE_FONT     "\"Verdana:bold:pixelsize=10\""
-#define DEF_INFO_TEXT_FONT      "\"Trebuchet MS,sans serif:pixelsize=12\""
-#define DEF_WORKSPACE_NAME_FONT "\"Trebuchet MS,sans serif:pixelsize=24\""
+#define DEF_TITLE_FONT          "\"sans-serif:bold:pixelsize=12\""
+#define DEF_MENU_TITLE_FONT     "\"sans-serif:bold:pixelsize=12\""
+#define DEF_MENU_ENTRY_FONT     "\"sans-serif:pixelsize=12\""
+#define DEF_ICON_TITLE_FONT     "\"sans-serif:pixelsize=9\""
+#define DEF_CLIP_TITLE_FONT     "\"sans-serif:bold:pixelsize=10\""
+#define DEF_INFO_TEXT_FONT      "\"sans-serif:pixelsize=12\""
+#define DEF_WORKSPACE_NAME_FONT "\"sans-serif:pixelsize=24\""
 
 /* line width of the move/resize frame */
 #define DEF_FRAME_THICKNESS              1
-- 
1.8.3.2


-- 
To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.

Reply via email to