aspose.cells

Class FontConfigs

Specifies font settings

Constructor Summary
 
Property Getters/Setters Summary
static functiongetDefaultFontName()
staticfunction
           Gets or sets the default font name.
 
Method Summary
static functiongetFontSources()
Gets a copy of the array that contains the list of sources
static functiongetFontSubstitutes(originalFontName)
Returns array containing font substitute names to be used if original font is not presented.
static functionsetFontFolder(fontFolder, recursive)
Sets the fonts folder
static functionsetFontFolders(fontFolders, recursive)
Sets the fonts folders
static functionsetFontSources(sources)
Sets the fonts sources.
static functionsetFontSubstitutes(originalFontName, substituteFontNames)
Font substitute names for given original font name.
 

    • Constructor Detail

      • FontConfigs

        function FontConfigs()
    • Property Getters/Setters Detail

      • getDefaultFontName/setDefaultFontName : String 

        function static getDefaultFontName() / function static setDefaultFontName(value)
        
        Gets or sets the default font name.
    • Method Detail

      • setFontSubstitutes

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

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

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

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

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

        static function getFontSources()
        Gets a copy of the array that contains the list of sources
        Returns: