/** * @return typeface of the minor font to use in a document. * Typically the monor font is used for normal text or paragraph areas. * */ @SuppressWarnings("WeakerAccess") public String getMinorFont(){ return _theme.getThemeElements().getFontScheme().getMinorFont().getLatin().getTypeface(); } }
/** * @return typeface of the major font to use in a document. * Typically the major font is used for heading areas of a document. * */ @SuppressWarnings("WeakerAccess") public String getMajorFont(){ return _theme.getThemeElements().getFontScheme().getMajorFont().getLatin().getTypeface(); }
/** * @return typeface of the major font to use in a document. * Typically the major font is used for heading areas of a document. * */ @SuppressWarnings("WeakerAccess") public String getMajorFont(){ return _theme.getThemeElements().getFontScheme().getMajorFont().getLatin().getTypeface(); }
/** * @return typeface of the minor font to use in a document. * Typically the monor font is used for normal text or paragraph areas. * */ public String getMinorFont(){ return _theme.getThemeElements().getFontScheme().getMinorFont().getLatin().getTypeface(); }
private String getFontFamily( XWPFStylesDocument stylesDocument, CTFonts fonts ) { org.openxmlformats.schemas.wordprocessingml.x2006.main.STTheme.Enum asciiTheme = getTheme( fonts ); if ( asciiTheme != null ) { try { List<ThemeDocument> themeDocuments = stylesDocument.getThemeDocuments(); if ( themeDocuments.size() > 0 ) { for ( ThemeDocument themeDocument : themeDocuments ) { CTFontCollection fontCollection = getFontCollection( themeDocument, asciiTheme ); if ( fontCollection != null && fontCollection.getLatin() != null ) { return fontCollection.getLatin().getTypeface(); } } } return getDefaultFontFamily( asciiTheme ); } catch ( Exception e ) { e.printStackTrace(); } } return getFamily( fonts ); }
private String getFontFamily( XWPFStylesDocument stylesDocument, CTFonts fonts ) { org.openxmlformats.schemas.wordprocessingml.x2006.main.STTheme.Enum asciiTheme = getTheme( fonts ); if ( asciiTheme != null ) { try { List<ThemeDocument> themeDocuments = stylesDocument.getThemeDocuments(); if ( themeDocuments.size() > 0 ) { for ( ThemeDocument themeDocument : themeDocuments ) { CTFontCollection fontCollection = getFontCollection( themeDocument, asciiTheme ); if ( fontCollection != null && fontCollection.getLatin() != null ) { return fontCollection.getLatin().getTypeface(); } } } return getDefaultFontFamily( asciiTheme ); } catch ( Exception e ) { e.printStackTrace(); } } return getFamily( fonts ); }
private String getFontFamily( XWPFStylesDocument stylesDocument, CTFonts fonts ) { org.openxmlformats.schemas.wordprocessingml.x2006.main.STTheme.Enum asciiTheme = getTheme( fonts ); if ( asciiTheme != null ) { try { List<ThemeDocument> themeDocuments = stylesDocument.getThemeDocuments(); if ( themeDocuments.size() > 0 ) { for ( ThemeDocument themeDocument : themeDocuments ) { CTFontCollection fontCollection = getFontCollection( themeDocument, asciiTheme ); if ( fontCollection != null && fontCollection.getLatin() != null ) { return fontCollection.getLatin().getTypeface(); } } } return getDefaultFontFamily( asciiTheme ); } catch ( Exception e ) { e.printStackTrace(); } } return getFamily(fonts); }
private String getFontFamily( XWPFStylesDocument stylesDocument, CTFonts fonts ) { org.openxmlformats.schemas.wordprocessingml.x2006.main.STTheme.Enum asciiTheme = getTheme( fonts ); if ( asciiTheme != null ) { try { List<ThemeDocument> themeDocuments = stylesDocument.getThemeDocuments(); if ( themeDocuments.size() > 0 ) { for ( ThemeDocument themeDocument : themeDocuments ) { CTFontCollection fontCollection = getFontCollection( themeDocument, asciiTheme ); if ( fontCollection != null && fontCollection.getLatin() != null ) { return fontCollection.getLatin().getTypeface(); } } } return getDefaultFontFamily( asciiTheme ); } catch ( Exception e ) { e.printStackTrace(); } } return getFamily(fonts); }
/** * @return typeface of the major font to use in a document. * Typically the major font is used for heading areas of a document. * */ public String getMajorFont(){ return _theme.getThemeElements().getFontScheme().getMajorFont().getLatin().getTypeface(); }
/** * @return typeface of the minor font to use in a document. * Typically the monor font is used for normal text or paragraph areas. * */ @SuppressWarnings("WeakerAccess") public String getMinorFont(){ return _theme.getThemeElements().getFontScheme().getMinorFont().getLatin().getTypeface(); } }