[]
        
(Showing Draft Content)

IThemeFontScheme

Interface IThemeFontScheme


public interface IThemeFontScheme
Specifies the font theme to use.

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);
 
  • Method Summary

    Modifier and Type
    Method
    Description
    Uses the major font.
    Gets the minor font collection used by the theme.
  • Method Details

    • getMajor

      IThemeFonts getMajor()
      Uses the major font.

      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);
       
      Returns:
      The IThemeFonts object that contains the major theme fonts.
    • getMinor

      IThemeFonts getMinor()
      Gets the minor font collection used by the theme.

      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);
       
      Returns:
      The minor theme font collection.