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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user