code: 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());
      }
docs: Initializes the above and below offsets based on the font properties of the given box.
  @param box The box whose font properties should be used for initialization.