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 functionisFontAvailable(fontName)
Indicate whether the font is available.
static functionsetFontExclusiveSources(exclusiveSources)
Sets the fonts exclusive sources. Only fonts in the sources will be used.
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

      • isFontAvailable

        static function isFontAvailable(fontName)
        Indicate whether the font is available.
        Parameters:
        fontName: String - font name
        Returns:
        true if font is available, otherwise false.
      • 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.
      • setFontExclusiveSources

        static function setFontExclusiveSources(exclusiveSources)
        Sets the fonts exclusive sources. Only fonts in the sources will be used. System.setProperty("Aspose.Cells.FontDirExc", "fontExclusiveFolder") will be ignored if this is set.
        Parameters:
        exclusiveSources: 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: