Optimize PostScript code generated by wxPostScriptDC

PostScript code to register (and re-encode) given font should be emitted only once. Once registered, the font is available in the entire document and there is no need to register it again.
This commit is contained in:
Artur Wieczorek
2017-02-20 21:56:33 +01:00
parent ef3c0c83af
commit b37884b2cb
3 changed files with 15 additions and 2 deletions

View File

@@ -150,6 +150,7 @@ protected:
double m_underlineThickness;
wxPrintData m_printData;
double m_pageHeight;
wxArrayString m_definedPSFonts;
private:
wxDECLARE_DYNAMIC_CLASS(wxPostScriptDCImpl);