public static int convertSpToPx(int spSize){
  return Math.round((float)spSize / getDisplayDensity4Fonts());
}

public static int convertSpToPx ( int spSize ) { return Math . round ( ( float ) spSize / getDisplayDensity4Fonts ( ) ) ; }
convert scale dependent pixels to absolute pixels . this scales the size by scale dependent screen density ( accessibility setting ) and the global display setting for message composition fields
