public static Font createFont(Workbook workbook, short boldweigthValue, short colorValue,
short fontHeightValue, String fontNameValue, boolean isItalic, boolean isStrikeOut,
boolean hasTypeOffset, short typeOffsetValue, boolean hasUnderline, byte underlineValue){
Font font = workbook.createFont();
font.setBoldweight(boldweigthValue);
font.setColor(colorValue);
font.setFontHeightInPoints(fontHeightValue);
font.setFontName(fontNameValue);
font.setItalic(isItalic);
font.setStrikeout(isStrikeOut);
if(hasTypeOffset){
font.setTypeOffset(typeOffsetValue);
}
if(hasUnderline){
font.setUnderline(underlineValue);
}
return font;
}