Skip to content

Commit

Permalink
enhance the support of text line-through for excel (#1660) (#1661)
Browse files Browse the repository at this point in the history
  • Loading branch information
speckyspooky authored May 2, 2024
1 parent 02aad79 commit dca1895
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,6 @@ private Font createFont(BirtStyle birtStyle) {
font.setFontHeightInPoints(fontSize);
}
// Weight
// short fontWeight = smu
// .poiFontWeightFromBirt(cleanupQuotes(birtStyle.getProperty(StyleConstants.STYLE_FONT_WEIGHT)));
// if (fontWeight > 0) {
// font.setBoldweight(fontWeight);
// }
boolean fontWeight = smu
.poiFontWeightFromBirt(cleanupQuotes(birtStyle.getProperty(StyleConstants.STYLE_FONT_WEIGHT)));
font.setBold(fontWeight);
Expand All @@ -172,6 +167,11 @@ private Font createFont(BirtStyle birtStyle) {
if (CSSConstants.CSS_ITALIC_VALUE.equals(fontStyle) || CSSConstants.CSS_OBLIQUE_VALUE.equals(fontStyle)) {
font.setItalic(true);
}
// Linethrough
String fontLineThrough = cleanupQuotes(birtStyle.getProperty(StyleConstants.STYLE_TEXT_LINETHROUGH));
if (CSSConstants.CSS_LINE_THROUGH_VALUE.equals(fontLineThrough)) {
font.setStrikeout(true);
}
// Underline
String fontUnderline = cleanupQuotes(birtStyle.getProperty(StyleConstants.STYLE_TEXT_UNDERLINE));
if (CSSConstants.CSS_UNDERLINE_VALUE.equals(fontUnderline)) {
Expand Down

0 comments on commit dca1895

Please sign in to comment.