/** * 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; }
switch (type) { case WESTERN: fontstyle = mElement.getFoFontStyleAttribute(); fontweight = mElement.getFoFontWeightAttribute(); break;
switch (type) { case WESTERN: fontstyle = mElement.getFoFontStyleAttribute(); fontweight = mElement.getFoFontWeightAttribute(); break;
switch (type) { case WESTERN: fontstyle = mElement.getFoFontStyleAttribute(); fontweight = mElement.getFoFontWeightAttribute(); break;
String fontStyle = ele.getFoFontStyleAttribute(); if (StringUtils.isNotEmpty(fontStyle)) { cssStyleSheet.setCSSProperty(FONT_STYLE, fontStyle);
String fontStyle = ele.getFoFontStyleAttribute(); if (StringUtils.isNotEmpty(fontStyle)) { if (ITALIC.equals(fontStyle)) {
String fontStyle = ele.getFoFontStyleAttribute(); if ( StringUtils.isNotEmpty( fontStyle ) )
String fontStyle = ele.getFoFontStyleAttribute(); if ( StringUtils.isNotEmpty( fontStyle ) )
String fontStyle = ele.getFoFontStyleAttribute(); if ( StringUtils.isNotEmpty( fontStyle ) )