Optimize selecting font in generated PostScript code

Emit code to select PostScript font only if it is needed (not at every call to SetFont(), but only if font has been really changed prior to a text drawing operation).
This commit is contained in:
Artur Wieczorek
2017-03-04 18:54:44 +01:00
parent 8950ac9a3f
commit feee67e6a1
3 changed files with 56 additions and 34 deletions

View File

@@ -12,6 +12,13 @@
can write PostScript files on any platform. See wxDC for descriptions of
the member functions.
@section start_doc Starting a document
Document should be started with call to StartDoc() prior to calling any
function to execute a drawing operation.
However, some functions, like SetFont(), may be legitimately called even
before StartDoc().
@library{wxbase}
@category{dc}
*/