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 String getDefaultFontFamily(Enum asciiTheme) { if (asciiTheme.equals(STTheme.MINOR_H_ANSI)) { return "Calibri"; } return null; }