diff options
author | Berke Viktor <bviktor@hexchat.org> | 2012-10-28 02:08:36 +0100 |
---|---|---|
committer | Berke Viktor <bviktor@hexchat.org> | 2012-10-28 02:08:36 +0100 |
commit | 6ae224107fbc0589629e3368bd516e08ae4b5a54 (patch) | |
tree | 4f39345cfcbefdff8005cc912ee89723f49b8c99 /src/common/cfgfiles.c | |
parent | e0f61605de13844e17caa25722ec13a08cf743b6 (diff) |
Use Consolas as the default font where available
Diffstat (limited to 'src/common/cfgfiles.c')
-rw-r--r-- | src/common/cfgfiles.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/common/cfgfiles.c b/src/common/cfgfiles.c index 2cd20ffb..cc5e0caa 100644 --- a/src/common/cfgfiles.c +++ b/src/common/cfgfiles.c @@ -789,8 +789,21 @@ load_config (void) #endif strcpy (prefs.hex_stamp_log_format, "%b %d %H:%M:%S "); strcpy (prefs.hex_stamp_text_format, "[%H:%M:%S] "); +#ifdef WIN32 + if (find_font ("Consolas")) + { + strcpy (prefs.hex_text_font, "Consolas 10"); + strcpy (prefs.hex_text_font_main, "Consolas 10"); + } + else + { + strcpy (prefs.hex_text_font, DEF_FONT); + strcpy (prefs.hex_text_font_main, DEF_FONT); + } +#else strcpy (prefs.hex_text_font, DEF_FONT); strcpy (prefs.hex_text_font_main, DEF_FONT); +#endif strcpy (prefs.hex_text_font_alternative, DEF_FONT_ALTER); strcpy (prefs.hex_text_spell_langs, g_getenv ("LC_ALL") ? g_getenv ("LC_ALL") : "en_US"); |