- static const double dScreenDPI = 82;
- static const double dPointsPerInch = 72.;
- m_dPointsPerPixel = dPointsPerInch / dScreenDPI;
- const int iTestPointSize = 72;
- m_font.SetPointSize (iTestPointSize);
- m_driver.idWX()->SetFont(m_font);
- double dTestCharHeight = m_driver.idWX()->GetCharHeight();
- m_dPointsPerPixel = iTestPointSize / dTestCharHeight;
+ static const double dScreenDPI = 82;
+ static const double dPointsPerInch = 72.;
+ m_dPointsPerPixel = dPointsPerInch / dScreenDPI;
+ const int iTestPointSize = 12;\r
+ m_pFont = new wxFont (wxROMAN, wxNORMAL, wxNORMAL, wxNORMAL);
+ m_pFont->SetPointSize (iTestPointSize);\r
+ m_pFont->SetWeight (wxNORMAL);\r
+ m_pFont->SetStyle (wxNORMAL);
+ m_pFont->SetFamily (wxROMAN);\r
+#ifdef MSVC\r
+ m_pFont->SetFaceName(wxString("times new roman"));\r
+#endif\r
+ m_driver.idWX()->SetFont (*m_pFont);
+ double dTestCharHeight = m_driver.idWX()->GetCharHeight();
+ m_dPointsPerPixel = iTestPointSize / dTestCharHeight;\r
+ m_driver.idWX()->SetBackground (*wxWHITE_BRUSH);