/** * @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(); } }
CTFontScheme fontTheme = theme.getXmlObject().getThemeElements().getFontScheme(); CTFontCollection coll = typeface.startsWith("+mj-") ? fontTheme.getMajorFont() : fontTheme.getMinorFont();
private CTFontCollection getFontCollection( ThemeDocument themeDocument, Enum asciiTheme ) { CTFontScheme fontScheme = themeDocument.getTheme().getThemeElements().getFontScheme(); if ( fontScheme != null ) { if ( asciiTheme.equals( STTheme.MINOR_ASCII ) || asciiTheme.equals( STTheme.MINOR_BIDI ) || asciiTheme.equals( STTheme.MINOR_EAST_ASIA ) || asciiTheme.equals( STTheme.MINOR_H_ANSI ) ) { return fontScheme.getMinorFont(); } return fontScheme.getMajorFont(); } return null; }
private CTFontCollection getFontCollection( ThemeDocument themeDocument, Enum asciiTheme ) { CTFontScheme fontScheme = themeDocument.getTheme().getThemeElements().getFontScheme(); if ( fontScheme != null ) { if ( asciiTheme.equals( STTheme.MINOR_ASCII ) || asciiTheme.equals( STTheme.MINOR_BIDI ) || asciiTheme.equals( STTheme.MINOR_EAST_ASIA ) || asciiTheme.equals( STTheme.MINOR_H_ANSI ) ) { return fontScheme.getMinorFont(); } return fontScheme.getMajorFont(); } return null; }
private CTFontCollection getFontCollection( ThemeDocument themeDocument, Enum asciiTheme ) { CTFontScheme fontScheme = themeDocument.getTheme().getThemeElements().getFontScheme(); if ( fontScheme != null ) { if ( asciiTheme.equals( STTheme.MINOR_ASCII ) || asciiTheme.equals( STTheme.MINOR_BIDI ) || asciiTheme.equals( STTheme.MINOR_EAST_ASIA ) || asciiTheme.equals( STTheme.MINOR_H_ANSI ) ) { return fontScheme.getMinorFont(); } return fontScheme.getMajorFont(); } return null; }
private CTFontCollection getFontCollection( ThemeDocument themeDocument, Enum asciiTheme ) { CTFontScheme fontScheme = themeDocument.getTheme().getThemeElements().getFontScheme(); if ( fontScheme != null ) { if ( asciiTheme.equals( STTheme.MINOR_ASCII ) || asciiTheme.equals( STTheme.MINOR_BIDI ) || asciiTheme.equals( STTheme.MINOR_EAST_ASIA ) || asciiTheme.equals( STTheme.MINOR_H_ANSI ) ) { return fontScheme.getMinorFont(); } return fontScheme.getMajorFont(); } return null; }
/** * @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(); }
/** * @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(); } }
CTFontScheme fontTheme = theme.getXmlObject().getThemeElements().getFontScheme(); CTFontCollection coll = typeface.startsWith("+mj-") ? fontTheme.getMajorFont() : fontTheme.getMinorFont();