new FontConfigs()

Methods

getDefaultFontName()

Gets or sets the default font name.

setDefaultFontName()

Gets or sets the default font name.

static

getFontSources() → Array of FontSourceBase

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

Returns

Array of FontSourceBase 

static

getFontSubstitutes(originalFontName) → Array of String

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

Parameter

Name Type Optional Description

originalFontName

String

 

originalFontName

Returns

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

static

isFontAvailable(fontName) → boolean

Indicate whether the font is available.

Parameter

Name Type Optional Description

fontName

String

 

font name

Returns

boolean true if font is available, otherwise false.

static

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.

Parameter

Name Type Optional Description

exclusiveSources

Array of FontSourceBase

 

An array of sources that contain TrueType fonts.

static

setFontFolder(fontFolder, recursive)

Sets the fonts folder

Parameters

Name Type Optional Description

fontFolder

String

 

The folder that contains TrueType fonts.

recursive

boolean

 

Determines whether or not to scan subfolders.

static

setFontFolders(fontFolders, recursive)

Sets the fonts folders

Parameters

Name Type Optional Description

fontFolders

Array of String

 

The folders that contains TrueType fonts.

recursive

boolean

 

Determines whether or not to scan subfolders.

static

setFontSources(sources)

Sets the fonts sources.

Parameter

Name Type Optional Description

sources

Array of FontSourceBase

 

An array of sources that contain TrueType fonts.

static

setFontSubstitutes(originalFontName, substituteFontNames)

Font substitute names for given original font name.

Parameters

Name Type Optional Description

originalFontName

String

 

Original font name.

substituteFontNames

Array of String

 

List of font substitute names to be used if original font is not presented.