diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2007-04-16 05:41:15 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2007-04-16 05:41:15 +0000 |
commit | 839719a70498485a26889ee86086e768ead87d1b (patch) | |
tree | 3cebaabeab426e1982639647da93b57438794499 /src/main.c | |
parent | 16de7229895d8c8da1ed334a2b638d1795c51626 (diff) |
win32: check for the loadability of the default font.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1637 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -225,6 +225,34 @@ int main(int argc, char *argv[]) prefs_actions_read_config(); prefs_display_header_read_config(); +#ifdef G_OS_WIN32 + { + gchar *path; + path = g_strconcat(get_rc_dir(), G_DIR_SEPARATOR_S, COMMON_RC, + NULL); + if (!is_file_exist(path) && conv_is_ja_locale()) { + const gchar *str; + + debug_print("fixing prefs_common.textfont setting\n"); + str = "MS Gothic 12"; + if (!gtkut_font_can_load(str)) { + debug_print("font '%s' load failed\n", str); + str = "\xef\xbc\xad\xef\xbc\xb3 \xe3\x82\xb4\xe3\x82\xb7\xe3\x83\x83\xe3\x82\xaf 12"; + if (!gtkut_font_can_load(str)) { + debug_print("font '%s' load failed\n", str); + str = NULL; + } + } + if (str) { + debug_print("font '%s' load ok\n", str); + g_free(prefs_common.textfont); + prefs_common.textfont = g_strdup(str); + } + } + g_free(path); + } +#endif + gtkut_stock_button_set_set_reverse(!prefs_common.comply_gnome_hig); check_gpg(); |