From 582acbad25c722a39f6c7bb29c92c3933a964366 Mon Sep 17 00:00:00 2001 From: hiro Date: Fri, 30 Sep 2005 09:45:20 +0000 Subject: Win32: set the default font to 'MS Gothic 12' on Japanese environment. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@617 ee746299-78ed-0310-b773-934348b2243d --- libsylph/prefs_common.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libsylph/prefs_common.c') diff --git a/libsylph/prefs_common.c b/libsylph/prefs_common.c index 71cc16ff..9b8af6e8 100644 --- a/libsylph/prefs_common.c +++ b/libsylph/prefs_common.c @@ -343,6 +343,16 @@ void prefs_common_read_config(void) path = g_strconcat(get_rc_dir(), G_DIR_SEPARATOR_S, COMMON_RC, NULL); prefs_read_config(param, "Common", path, NULL); + +#ifdef G_OS_WIN32 + if (!is_file_exist(path)) { + if (conv_is_ja_locale()) { + g_free(prefs_common.textfont); + prefs_common.textfont = g_strdup("MS Gothic 12"); + } + } +#endif + g_free(path); prefs_common.online_mode = TRUE; -- cgit v1.2.3