src/org/tiefaces/components/websheet/utility/CellStyleUtility.java
public static String getCellFontStyle(final Workbook wb,
			final Cell poiCell) {

		CellStyle cellStyle = poiCell.getCellStyle();
		StringBuilder webStyle = new StringBuilder();
		if (cellStyle != null) {
			short fontIdx = cellStyle.getFontIndex();
			Font font = wb.getFontAt(fontIdx);
			if (font.getItalic()) {
				webStyle.append("font-style: italic;");
			}
			if (font.getBold()) {
				webStyle.append("font-weight: bold;");
			}
			webStyle.append(
					"font-size: " + font.getFontHeightInPoints() + "pt;");
			String decoration = getCellFontDecoration(font);
			if (decoration.length() > 0) {
				webStyle.append("text-decoration:" + decoration + ";");
			}
			webStyle.append(getCellFontColor(font));

		}
		return webStyle.toString();

	}
public static String getCellFontStyle(final Workbook wb,
			final Cell poiCell) {

		CellStyle cellStyle = poiCell.getCellStyle();
		StringBuilder webStyle = new StringBuilder();
		if (cellStyle != null) {
			short fontIdx = cellStyle.getFontIndex();
			Font font = wb.getFontAt(fontIdx);
			if (font.getItalic()) {
				webStyle.append("font-style: italic;");
			}
			if (font.getBold()) {
				webStyle.append("font-weight: bold;");
			}
			webStyle.append(
					"font-size: " + font.getFontHeightInPoints() + "pt;");
			String decoration = getCellFontDecoration(font);
			if (decoration.length() > 0) {
				webStyle.append("text-decoration:" + decoration + ";");
			}
			webStyle.append(getCellFontColor(font));

		}
		return webStyle.toString();

	}
Gets the cell font style.

@param wb
the wb
@param poiCell
the poi cell
@return the cell font style