FontConfigs

FontConfigs class

Specifies font settings

Constructors

NameDescription
FontConfigs

Properties

NameTypeDescription
DefaultFontNameStringGets or sets the default font name.

Methods

NameDescription
isFontAvailableIndicate whether the font is available.
getFontFileDataInfo
setFontSubstitutesFont substitute names for given original font name.
getFontSubstitutesReturns array containing font substitute names to be used if original font is not presented.
setFontFolderSets the fonts folder
setFontFoldersSets the fonts folders
setFontSourcesSets the fonts sources.
setFontExclusiveSourcesSets the fonts exclusive sources. Only fonts in the sources will be used.

System.setProperty(“Aspose.Cells.FontDirExc”, | | getFontSources | Gets a copy of the array that contains the list of sources |

FontConfigs()

FontConfigs.DefaultFontName property

Gets or sets the default font name.

Type: String

isFontAvailable(fontName)

Indicate whether the font is available.

ParameterTypeDescription
fontNameStringfont name

Returns: true if font is available, otherwise false.

getFontFileDataInfo(fontName, isBold, isItalic, isExactStyle)

setFontSubstitutes(originalFontName, substituteFontNames)

Font substitute names for given original font name.

ParameterTypeDescription
originalFontNameStringOriginal font name.
substituteFontNamesString[]List of font substitute names to be used if original font is not presented.

getFontSubstitutes(originalFontName)

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

ParameterTypeDescription
originalFontNameStringoriginalFontName

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

setFontFolder(fontFolder, recursive)

Sets the fonts folder

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

setFontFolders(fontFolders, recursive)

Sets the fonts folders

ParameterTypeDescription
fontFoldersString[]The folders that contains TrueType fonts.
recursivebooleanDetermines whether or not to scan subfolders.

setFontSources(sources)

Sets the fonts sources.

ParameterTypeDescription
sourcesFontSourceBase[]An array of sources that contain TrueType fonts.

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.

ParameterTypeDescription
exclusiveSourcesFontSourceBase[]An array of sources that contain TrueType fonts.

getFontSources()

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