public static float calculateMaxTextHeight ( Paint _Paint , String _Text ) { Rect height = new Rect ( ) ; String text = _Text == null ? "MgHITasger" : _Text ; _Paint . getTextBounds ( text , 0 , text . length ( ) , height ) ; return height . height ( ) ; }
Calculates the maximum text height which is possible based on the used Paint and its settings .