/** * Return the font style for western characters * <p> * Null will be returned if there is no font style setting for western * characters * * @return the font style */ public StyleTypeDefinitions.FontStyle getFontStyle() { String fontstyle = mElement.getFoFontStyleAttribute(); String fontweight = mElement.getFoFontWeightAttribute(); StyleTypeDefinitions.OdfFontStyle theFontType = StyleTypeDefinitions.OdfFontStyle.enumValueOf(fontstyle); StyleTypeDefinitions.OdfFontWeight theFontWeight = StyleTypeDefinitions.OdfFontWeight.enumValueOf(fontweight); if (theFontType == StyleTypeDefinitions.OdfFontStyle.NORMAL && theFontWeight == StyleTypeDefinitions.OdfFontWeight.NORMAL) return StyleTypeDefinitions.FontStyle.REGULAR; if (theFontType == StyleTypeDefinitions.OdfFontStyle.ITALIC && theFontWeight == StyleTypeDefinitions.OdfFontWeight.NORMAL) return StyleTypeDefinitions.FontStyle.ITALIC; if (theFontType == StyleTypeDefinitions.OdfFontStyle.ITALIC && theFontWeight == StyleTypeDefinitions.OdfFontWeight.BOLD) return StyleTypeDefinitions.FontStyle.BOLDITALIC; if (theFontType == StyleTypeDefinitions.OdfFontStyle.NORMAL && theFontWeight == StyleTypeDefinitions.OdfFontWeight.BOLD) return StyleTypeDefinitions.FontStyle.BOLD; return null; }
/** * Return the font style for western characters * <p> * Null will be returned if there is no font style setting for western * characters * * @return the font style */ public StyleTypeDefinitions.FontStyle getFontStyle() { String fontstyle = mElement.getFoFontStyleAttribute(); String fontweight = mElement.getFoFontWeightAttribute(); StyleTypeDefinitions.OdfFontStyle theFontType = StyleTypeDefinitions.OdfFontStyle.enumValueOf(fontstyle); StyleTypeDefinitions.OdfFontWeight theFontWeight = StyleTypeDefinitions.OdfFontWeight.enumValueOf(fontweight); if (theFontType == StyleTypeDefinitions.OdfFontStyle.NORMAL && theFontWeight == StyleTypeDefinitions.OdfFontWeight.NORMAL) { return StyleTypeDefinitions.FontStyle.REGULAR; } if (theFontType == StyleTypeDefinitions.OdfFontStyle.ITALIC && theFontWeight == StyleTypeDefinitions.OdfFontWeight.NORMAL) { return StyleTypeDefinitions.FontStyle.ITALIC; } if (theFontType == StyleTypeDefinitions.OdfFontStyle.ITALIC && theFontWeight == StyleTypeDefinitions.OdfFontWeight.BOLD) { return StyleTypeDefinitions.FontStyle.BOLDITALIC; } if (theFontType == StyleTypeDefinitions.OdfFontStyle.NORMAL && theFontWeight == StyleTypeDefinitions.OdfFontWeight.BOLD) { return StyleTypeDefinitions.FontStyle.BOLD; } return null; }
/** * Return the font style for western characters * <p> * Null will be returned if there is no font style setting for western * characters * * @return the font style */ public StyleTypeDefinitions.FontStyle getFontStyle() { String fontstyle = mElement.getFoFontStyleAttribute(); String fontweight = mElement.getFoFontWeightAttribute(); StyleTypeDefinitions.OdfFontStyle theFontType = StyleTypeDefinitions.OdfFontStyle.enumValueOf(fontstyle); StyleTypeDefinitions.OdfFontWeight theFontWeight = StyleTypeDefinitions.OdfFontWeight.enumValueOf(fontweight); if (theFontType == StyleTypeDefinitions.OdfFontStyle.NORMAL && theFontWeight == StyleTypeDefinitions.OdfFontWeight.NORMAL) { return StyleTypeDefinitions.FontStyle.REGULAR; } if (theFontType == StyleTypeDefinitions.OdfFontStyle.ITALIC && theFontWeight == StyleTypeDefinitions.OdfFontWeight.NORMAL) { return StyleTypeDefinitions.FontStyle.ITALIC; } if (theFontType == StyleTypeDefinitions.OdfFontStyle.ITALIC && theFontWeight == StyleTypeDefinitions.OdfFontWeight.BOLD) { return StyleTypeDefinitions.FontStyle.BOLDITALIC; } if (theFontType == StyleTypeDefinitions.OdfFontStyle.NORMAL && theFontWeight == StyleTypeDefinitions.OdfFontWeight.BOLD) { return StyleTypeDefinitions.FontStyle.BOLD; } return null; }
case WESTERN: fontstyle = mElement.getFoFontStyleAttribute(); fontweight = mElement.getFoFontWeightAttribute(); break; case CJK:
case WESTERN: fontstyle = mElement.getFoFontStyleAttribute(); fontweight = mElement.getFoFontWeightAttribute(); break; case CJK:
case WESTERN: fontstyle = mElement.getFoFontStyleAttribute(); fontweight = mElement.getFoFontWeightAttribute(); break; case CJK:
String fontWeight = ele.getFoFontWeightAttribute(); if (StringUtils.isNotEmpty(fontWeight)) { cssStyleSheet.setCSSProperty(FONT_WEIGHT, fontWeight);
String fontWeight = ele.getFoFontWeightAttribute(); if (StringUtils.isNotEmpty(fontWeight)) { if (BOLD.equals(fontWeight)) {
String fontWeight = ele.getFoFontWeightAttribute(); if ( StringUtils.isNotEmpty( fontWeight ) )
String fontWeight = ele.getFoFontWeightAttribute(); if ( StringUtils.isNotEmpty( fontWeight ) )
String fontWeight = ele.getFoFontWeightAttribute(); if ( StringUtils.isNotEmpty( fontWeight ) )