Generic implementation from wxDCImpl doesn't work well with wxPrinterDC under wxGTK. (This implementation is adopted from wxCairoContext::GetPartialTextExtents.)
Generic implementation from wxDCImpl doesn't work well with wxPrinterDC under wxGTK. (This implementation is adopted from wxCairoContext::GetPartialTextExtents.)