com.aspose.cells

Class FontConfigs

  • java.lang.Object
    • com.aspose.cells.FontConfigs
public class FontConfigs 
extends java.lang.Object

Specifies font settings

Constructor Summary
 
Property Getters/Setters Summary
staticjava.lang.StringgetDefaultFontName()
staticvoid
setDefaultFontName(java.lang.Stringvalue)
Gets or sets the default font name.
 
Method Summary
staticFontSourceBase[]getFontSources()
Gets a copy of the array that contains the list of sources
staticjava.lang.String[]getFontSubstitutes(java.lang.StringoriginalFontName)
Returns array containing font substitute names to be used if original font is not presented.
staticvoidsetFontFolder(java.lang.StringfontFolder, booleanrecursive)
Sets the fonts folder
staticvoidsetFontFolders(java.lang.String[]fontFolders, booleanrecursive)
Sets the fonts folders
staticvoidsetFontSources(FontSourceBase[] sources)
Sets the fonts sources.
staticvoidsetFontSubstitutes(java.lang.StringoriginalFontName, java.lang.String[]substituteFontNames)
Font substitute names for given original font name.
 

    • Constructor Detail

      • FontConfigs

        public FontConfigs()
    • Property Getters/Setters Detail

      • getDefaultFontName/setDefaultFontName

        public static java.lang.String getDefaultFontName() / public static void setDefaultFontName(java.lang.String value)
        
        Gets or sets the default font name.
    • Method Detail

      • setFontSubstitutes

        public static void setFontSubstitutes(java.lang.String originalFontName, java.lang.String[] substituteFontNames)
        Font substitute names for given original font name.
        Parameters:
        originalFontName - Original font name.
        substituteFontNames - List of font substitute names to be used if original font is not presented.
      • getFontSubstitutes

        public static java.lang.String[] getFontSubstitutes(java.lang.String originalFontName)
        Returns array containing font substitute names to be used if original font is not presented.
        Parameters:
        originalFontName - originalFontName
        Returns:
        An array containing font substitute names to be used if original font is not presented.
      • setFontFolder

        public static void setFontFolder(java.lang.String fontFolder, boolean recursive)
        Sets the fonts folder
        Parameters:
        fontFolder - The folder that contains TrueType fonts.
        recursive - Determines whether or not to scan subfolders.
      • setFontFolders

        public static void setFontFolders(java.lang.String[] fontFolders, boolean recursive)
        Sets the fonts folders
        Parameters:
        fontFolders - The folders that contains TrueType fonts.
        recursive - Determines whether or not to scan subfolders.
      • setFontSources

        public static void setFontSources(FontSourceBase[] sources)
        Sets the fonts sources.
        Parameters:
        sources - An array of sources that contain TrueType fonts.
      • getFontSources

        public static FontSourceBase[] getFontSources()
        Gets a copy of the array that contains the list of sources
        Returns: