FontConfigs

FontConfigs class

Specifies font settings

new FontConfigs()

Methods

NameDescription
getDefaultFontName()Gets or sets the default font name.
setDefaultFontName()Gets or sets the default font name.
getFontFileDataInfo() (static)
getFontSources() (static)Gets a copy of the array that contains the list of sources
getFontSubstitutes(originalFontName) (static)Returns array containing font substitute names to be used if original font is not presented.
isFontAvailable(fontName) (static)Indicate whether the font is available.
setFontExclusiveSources(exclusiveSources) (static)Sets the fonts exclusive sources. Only fonts in the sources will be used. System.setProperty(“Aspose.Cells.FontDirExc”,
setFontFolder(fontFolder, recursive) (static)Sets the fonts folder
setFontFolders(fontFolders, recursive) (static)Sets the fonts folders
setFontSources(sources) (static)Sets the fonts sources.
setFontSubstitutes(originalFontName, substituteFontNames) (static)Font substitute names for given original font name.

getDefaultFontName()

Gets or sets the default font name.

setDefaultFontName()

Gets or sets the default font name.

getFontFileDataInfo() (static)

getFontSources() (static)

Gets a copy of the array that contains the list of sources

Returns: Array ofFontSourceBase — Array ofFontSourceBase

getFontSubstitutes(originalFontName) (static)

Returns array containing font substitute names to be used if original font is not presented.

ParameterTypeDescription
originalFontNameStringoriginalFontName

Returns: Array of String — Array of String An array containing font substitute names to be used if original font is not presented.

isFontAvailable(fontName) (static)

Indicate whether the font is available.

ParameterTypeDescription
fontNameStringfont name

Returns: boolean — boolean true if font is available, otherwise false.

setFontExclusiveSources(exclusiveSources) (static)

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.

ParameterTypeDescription
exclusiveSourcesArray ofFontSourceBaseAn array of sources that contain TrueType fonts.

setFontFolder(fontFolder, recursive) (static)

Sets the fonts folder

ParameterTypeDescription
fontFolderStringThe folder that contains TrueType fonts.
recursivebooleanDetermines whether or not to scan subfolders.

setFontFolders(fontFolders, recursive) (static)

Sets the fonts folders

ParameterTypeDescription
fontFoldersArray of StringThe folders that contains TrueType fonts.
recursivebooleanDetermines whether or not to scan subfolders.

setFontSources(sources) (static)

Sets the fonts sources.

ParameterTypeDescription
sourcesArray ofFontSourceBaseAn array of sources that contain TrueType fonts.

setFontSubstitutes(originalFontName, substituteFontNames) (static)

Font substitute names for given original font name.

ParameterTypeDescription
originalFontNameStringOriginal font name.
substituteFontNamesArray of StringList of font substitute names to be used if original font is not presented.