+void wxHtmlWinParser::SetStandardFonts(int size,
+ const wxString& normal_face,
+ const wxString& fixed_face)
+{
+ wxFont defaultFont = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
+
+ int f_sizes[7];
+ if (size == -1)
+ size = defaultFont.GetPointSize();
+
+ f_sizes[0] = int(size * 0.6);
+ f_sizes[1] = int(size * 0.8);
+ f_sizes[2] = size;
+ f_sizes[3] = int(size * 1.2);
+ f_sizes[4] = int(size * 1.4);
+ f_sizes[5] = int(size * 1.6);
+ f_sizes[6] = int(size * 1.8);
+
+ wxString normal = normal_face.empty() ?
+ defaultFont.GetFaceName() : normal_face;
+
+ SetFonts(normal, fixed_face, f_sizes);
+}
+