2008-09-24 [colin] 3.5.0cvs125
[claws.git] / src / wizard.c
index 9a3c056a459a5b6ab9130ffbcedd145ce3accc49..031e565a6ad4aed6d57513efe73920fcfe0a194e 100644 (file)
@@ -452,7 +452,20 @@ static void initialize_fonts(WizardWindow *wizard)
                        widget->style->font_desc)
                      /PANGO_SCALE;
        gchar *tmp, *new;
-       
+#ifdef G_OS_WIN32
+       PangoFontDescription *bold_desc;
+       gchar *curfont = pango_font_description_to_string(widget->style->font_desc);
+       g_free(prefs_common.smallfont);
+       g_free(prefs_common.normalfont);
+       g_free(prefs_common.boldfont);
+       prefs_common.smallfont = g_strdup(curfont);
+       prefs_common.normalfont = g_strdup(curfont);
+       bold_desc = pango_font_description_from_string(curfont);
+       pango_font_description_set_weight(bold_desc, PANGO_WEIGHT_BOLD);
+       prefs_common.boldfont = pango_font_description_to_string(bold_desc);
+       pango_font_description_free(bold_desc);
+       g_free(curfont);
+#endif 
        tmp = g_strdup(prefs_common.textfont);
        if (strrchr(tmp, ' ')) {
                *(strrchr(tmp, ' ')) = '\0';