X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/32ea1f988de29c88fd96b468bea495b85c1a9c25..328bfc22243e3d4672ddf626db4f78e4269c7275:/src/mac/dc.cpp diff --git a/src/mac/dc.cpp b/src/mac/dc.cpp index 669a5bf526..acad87440d 100644 --- a/src/mac/dc.cpp +++ b/src/mac/dc.cpp @@ -1276,10 +1276,9 @@ wxCoord wxDC::GetCharWidth(void) const MacInstallFont() ; - FontInfo fi ; - ::GetFontInfo( &fi ) ; + int width = ::TextWidth( "n" , 0 , 1 ) ; - return YDEV2LOGREL((fi.descent + fi.ascent) / 2) ; + return YDEV2LOGREL(width) ; } wxCoord wxDC::GetCharHeight(void) const