question: 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 ( ) ; }
target:  Compute metrics and return the dimensions.