[]
A theme font defines the font name and language category used by a workbook theme. It is typically accessed from a workbook's Theme through its IThemeFontScheme and IThemeFonts collections.
Theme theme = new Theme("CustomTheme", Themes.GetBerlin());
workbook.setTheme(theme);
IThemeFont themeFont = workbook.getTheme().getThemeFontScheme().getMajor().get(FontLanguageIndex.Latin);
themeFont.setName("Aptos");
String fontName = themeFont.getName();
getName()voidUse this method to retrieve the font family name assigned to the current theme font entry.
Theme theme = new Theme("CustomTheme", Themes.GetBerlin());
workbook.setTheme(theme);
IThemeFont themeFont = workbook.getTheme().getThemeFontScheme().getMajor().get(FontLanguageIndex.Latin);
themeFont.setName("Aptos");
String fontName = themeFont.getName();
Use this method to set the font family name assigned to the current theme font entry.
Theme theme = new Theme("CustomTheme", Themes.GetBerlin());
workbook.setTheme(theme);
IThemeFont themeFont = workbook.getTheme().getThemeFontScheme().getMajor().get(FontLanguageIndex.Latin);
themeFont.setName("Aptos");
value - The name of the theme font.Returns the FontLanguageIndex that identifies this theme font in a theme font collection, such as Latin, EastAsian, or ComplexScript.
IThemeFont themeFont = workbook.getTheme().getThemeFontScheme().getMajor().get(FontLanguageIndex.EastAsian);
FontLanguageIndex languageIndex = themeFont.getFontLanguageIndex();
FontLanguageIndex of the theme font.