if (style.isUnderline()) {
font.get().setUnderline(Font.U_SINGLE);
}
if (style.getFontSize() != null) {
Integer fontSize = style.getFontSize();
SizeUnit sizeUnit = style.getFontSizeUnit();
if (sizeUnit == SizeUnit.PERCENT) {
fontSize = convertFontPercentageToPt(fontSize);
}
font.get().setFontHeightInPoints(fontSize.shortValue());
}