[]
An IThemeFontScheme represents the font scheme of a workbook theme and provides access to the major and minor theme font collections through getMajor() and getMinor().
IThemeFontScheme fontScheme = workbook.getTheme().getThemeFontScheme();
IThemeFonts majorFonts = fontScheme.getMajor();
IThemeFonts minorFonts = fontScheme.getMinor();
IThemeFont majorLatinFont = majorFonts.get(FontLanguageIndex.Latin);
Gets the collection of major theme fonts for different language categories. Major theme fonts are used by the workbook theme for content that follows the theme's major font settings.
Theme theme = new Theme("Custom Theme");
theme.getThemeFontScheme().getMajor().get(FontLanguageIndex.Latin).setName("Buxton Sketch");
workbook.setTheme(theme);
IThemeFonts majorFonts = workbook.getTheme().getThemeFontScheme().getMajor();
IThemeFont latinFont = majorFonts.get(FontLanguageIndex.Latin);
IThemeFonts object that contains the major theme fonts.Uses the minor font and returns the IThemeFonts collection that contains the theme fonts for different language categories, such as Latin, East Asian, and complex script.
IThemeFontScheme fontScheme = workbook.getTheme().getThemeFontScheme();
IThemeFonts minorFonts = fontScheme.getMinor();
IThemeFont latinFont = minorFonts.get(FontLanguageIndex.Latin);