public static FSize calcTextSize(Paint paint,String demoText){
  Rect r=new Rect();
  paint.getTextBounds(demoText,0,demoText.length(),r);
  return new FSize(r.width(),r.height());
}

public static FSize calcTextSize ( Paint paint , String demoText ) { Rect r = new Rect ( ) ; paint . getTextBounds ( demoText , 0 , demoText . length ( ) , r ) ; return new FSize ( r . width ( ) , r . height ( ) ) ; }
calculates the approximate size of a text , depending on a demo text avoid repeated calls ( e . g . inside drawing methods )
