int halfLeading = Math.round((lineHeight - fontSpec.size) / 2);
int halfLeading = Math.round((lineHeight - (strutLM.getAscent() + strutLM.getDescent())) / 2);
    private static InlineBoxMeasurements getInitialMeasurements(            LayoutContext c, Box container, LineMetrics strutLM) {        Style style = container.getStyle();        float lineHeight = style.getCalculatedStyle().getLineHeight(c);        FontSpecification fontSpec = style.getCalculatedStyle().getFont(c);        int halfLeading = Math.round((lineHeight - fontSpec.size) / 2);        InlineBoxMeasurements measurements = new InlineBoxMeasurements();        measurements.setBaseline((int) (halfLeading + strutLM.getAscent()));        measurements.setTextTop((int) halfLeading);        measurements.setTextBottom((int) (measurements.getBaseline() + strutLM.getDescent()));        measurements.setInlineTop((int) halfLeading);        measurements.setInlineBottom((int) (halfLeading + lineHeight));        return measurements;    }