Implement GetPartialTextExtents() in wxGtkPrinterDC

Generic implementation from wxDCImpl doesn't work well with wxPrinterDC
under wxGTK.
(This implementation is adopted from wxCairoContext::GetPartialTextExtents.)
This commit is contained in:
Artur Wieczorek
2017-05-25 23:47:29 +02:00
parent 528c559953
commit ef3863a71e
2 changed files with 33 additions and 0 deletions

View File

@@ -291,6 +291,7 @@ protected:
wxCoord *descent = NULL,
wxCoord *externalLeading = NULL,
const wxFont *theFont = NULL ) const wxOVERRIDE;
bool DoGetPartialTextExtents(const wxString& text, wxArrayInt& widths) const wxOVERRIDE;
void DoGetSize(int* width, int* height) const wxOVERRIDE;
void DoGetSizeMM(int *width, int *height) const wxOVERRIDE;