diff --git a/src/osx/carbon/graphics.cpp b/src/osx/carbon/graphics.cpp index 92b3400784..15d1818e85 100644 --- a/src/osx/carbon/graphics.cpp +++ b/src/osx/carbon/graphics.cpp @@ -2275,8 +2275,8 @@ void wxMacCoreGraphicsContext::DoDrawText( const wxString &str, wxDouble x, wxDo if ( fref->GetStrikethrough() ) { CGFloat width = CTLineGetTypographicBounds(line, NULL, NULL, NULL); - CGFloat height = CTFontGetSize( font ); - CGPoint points[] = { {0.0, height / 2}, {width, height / 2} }; + CGFloat height = CTFontGetXHeight( font ); + CGPoint points[] = { {0.0, height * 0.6}, {width, height * 0.6} }; CGContextSetStrokeColorWithColor(m_cgContext, col); CGContextSetShouldAntialias(m_cgContext, false); CGContextSetLineWidth(m_cgContext, 1.0);