private int ensureBaselineOnGrid(){
  float baseline=getBaseline();
  float gridAlign=baseline % FOUR_DIP;
  if (gridAlign != 0) {
    extraTopPadding=(int)(FOUR_DIP - Math.ceil(gridAlign));
  }
  return extraTopPadding;
}

private int ensureBaselineOnGrid ( ) { float baseline = getBaseline ( ) ; float gridAlign = baseline % FOUR_DIP ; if ( gridAlign != 0 ) { extraTopPadding = ( int ) ( FOUR_DIP - Math . ceil ( gridAlign ) ) ; } return extraTopPadding ; }
ensure that the first line of text sits on the 4dp grid .
