}
}
public static ExtendedBaselineInfo createBaselineInfo (final int codepoint, final FontMetrics fontMetrics)
{
final BaselineInfo baselineInfo = fontMetrics.getBaselines(codepoint, null);
final int dominantBaseline =
TextUtility.translateBaselines(baselineInfo.getDominantBaseline());
final DefaultExtendedBaselineInfo extBaselineInfo =
new DefaultExtendedBaselineInfo(dominantBaseline);
final long[] baselines = new long[ExtendedBaselineInfo.BASELINE_COUNT];
baselines[ExtendedBaselineInfo.ALPHABETHIC] = (baselineInfo.getBaseline(BaselineInfo.ALPHABETIC));
baselines[ExtendedBaselineInfo.CENTRAL] = (baselineInfo.getBaseline(BaselineInfo.CENTRAL));
baselines[ExtendedBaselineInfo.HANGING] = (baselineInfo.getBaseline(BaselineInfo.HANGING));
baselines[ExtendedBaselineInfo.IDEOGRAPHIC] = (baselineInfo.getBaseline(BaselineInfo.IDEOGRAPHIC));
baselines[ExtendedBaselineInfo.MATHEMATICAL] = (baselineInfo.getBaseline(BaselineInfo.MATHEMATICAL));
baselines[ExtendedBaselineInfo.MIDDLE] = (baselineInfo.getBaseline(BaselineInfo.MIDDLE));
baselines[ExtendedBaselineInfo.BEFORE_EDGE] = 0;
baselines[ExtendedBaselineInfo.TEXT_BEFORE_EDGE] = 0;
baselines[ExtendedBaselineInfo.TEXT_AFTER_EDGE] = (fontMetrics.getMaxHeight());
baselines[ExtendedBaselineInfo.AFTER_EDGE] = baselines[ExtendedBaselineInfo.TEXT_AFTER_EDGE];
extBaselineInfo.setBaselines(baselines);