public void considerBoxProperties ( ElementBox box ) { VisualContext ctx = box . getVisualContext ( ) ; int a = ctx . getBaselineOffset ( ) ; int b = ctx . getFontHeight ( ) - ctx . getBaselineOffset ( ) ; above = Math . max ( above , a ) ; below = Math . max ( below , b ) ; maxAlignedHeight = Math . max ( maxAlignedHeight , box . getLineHeight ( ) ) ; }
Initializes the above and below offsets based on the font properties of the given box .