-
- p -> SetHeader(m_Headers[0], wxPAGE_EVEN);
- p -> SetHeader(m_Headers[1], wxPAGE_ODD);
- p -> SetFooter(m_Footers[0], wxPAGE_EVEN);
- p -> SetFooter(m_Footers[1], wxPAGE_ODD);
-
- p -> SetMargins(m_PageSetupData -> GetMarginTopLeft().y,
- m_PageSetupData -> GetMarginBottomRight().y,
- m_PageSetupData -> GetMarginTopLeft().x,
- m_PageSetupData -> GetMarginBottomRight().x);
-
+
+ if (m_fontMode == FontMode_Explicit)
+ {
+ p->SetFonts(m_FontFaceNormal, m_FontFaceFixed, m_FontsSizes);
+ }
+ else // FontMode_Standard
+ {
+ p->SetStandardFonts(m_FontsSizesArr[0],
+ m_FontFaceNormal, m_FontFaceFixed);
+ }
+
+ p->SetHeader(m_Headers[0], wxPAGE_EVEN);
+ p->SetHeader(m_Headers[1], wxPAGE_ODD);
+ p->SetFooter(m_Footers[0], wxPAGE_EVEN);
+ p->SetFooter(m_Footers[1], wxPAGE_ODD);
+
+ p->SetMargins(m_PageSetupData->GetMarginTopLeft().y,
+ m_PageSetupData->GetMarginBottomRight().y,
+ m_PageSetupData->GetMarginTopLeft().x,
+ m_PageSetupData->GetMarginBottomRight().x);
+