X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/45e6e6f8ab806b337dffeb3b52fec7eba3c845ef..c583fa5a58ddbb2fa2bb04dba45be8d65293f2bd:/samples/html/printing/printing.cpp?ds=sidebyside diff --git a/samples/html/printing/printing.cpp b/samples/html/printing/printing.cpp index 411d7a03b6..036aa8912f 100644 --- a/samples/html/printing/printing.cpp +++ b/samples/html/printing/printing.cpp @@ -266,17 +266,15 @@ void MyFrame::OnOpen(wxCommandEvent& WXUNUSED(event)) void MyFrame::OnPrintSmall(wxCommandEvent& WXUNUSED(event)) { - int fontsizes[] = { 4, 6, 8, 10, 12, 20, 24 }; - m_Prn->SetFonts(wxEmptyString, wxEmptyString, fontsizes); + m_Prn->SetStandardFonts(8); } void MyFrame::OnPrintNormal(wxCommandEvent& WXUNUSED(event)) { - m_Prn->SetFonts(wxEmptyString, wxEmptyString, 0); + m_Prn->SetStandardFonts(12); } void MyFrame::OnPrintHuge(wxCommandEvent& WXUNUSED(event)) { - int fontsizes[] = { 20, 26, 28, 30, 32, 40, 44 }; - m_Prn->SetFonts(wxEmptyString, wxEmptyString, fontsizes); + m_Prn->SetStandardFonts(28); }