Support multiline strings in wxPostScriptDC::DrawText() and DrawRotatedText()

'show' operator in PostScript doesn't support printing newlines, so we need to split the string into lines manually and print each line separately.

Closes #17798.
This commit is contained in:
Artur Wieczorek
2017-02-11 23:05:37 +01:00
parent 506b51cae5
commit 8e47b3ca97
2 changed files with 39 additions and 13 deletions

View File

@@ -138,7 +138,7 @@ protected:
void DoGetSizeMM(int *width, int *height) const wxOVERRIDE;
// Common part of DoDrawText() and DoDrawRotatedText()
void DrawAnyText(const wxWX2MBbuf& textbuf, wxCoord testDescent);
void DrawAnyText(const wxWX2MBbuf& textbuf, wxCoord testDescent, double lineHeight);
FILE* m_pstream; // PostScript output stream
unsigned char m_currentRed;