Dimension measure(boolean zeroMetrics){
  if (zeroMetrics) {
    metrics.zero();
  }
  DrawContext context=new DrawContext(style,metrics,null,0,0);
  context.measureLineHeight();
  for (  Marker m : markers) {
    m.draw(context);
  }
  return context.dimension();
}

Dimension measure ( boolean zeroMetrics ) { if ( zeroMetrics ) { metrics . zero ( ) ; } DrawContext context = new DrawContext ( style , metrics , null , 0 , 0 ) ; context . measureLineHeight ( ) ; for ( Marker m : markers ) { m . draw ( context ) ; } return context . dimension ( ) ; }
compute metrics and return the dimensions .
